From 8d21fee22ec79324eef6e9a88c83bd6cf32315d6 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 13 Dec 2021 16:56:48 +0000 Subject: remove a couple hundred sys/param.h includes in userland code, and also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl --- src/regress/lib/libc/mkstemp/mkstemp_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/regress/lib/libc/mkstemp') diff --git a/src/regress/lib/libc/mkstemp/mkstemp_test.c b/src/regress/lib/libc/mkstemp/mkstemp_test.c index c1c05eae39..b92619cd36 100644 --- a/src/regress/lib/libc/mkstemp/mkstemp_test.c +++ b/src/regress/lib/libc/mkstemp/mkstemp_test.c @@ -8,7 +8,7 @@ * contain any X's */ -#include +#include #include #include @@ -17,6 +17,7 @@ #include #include #include +#include #include #define MAX_TEMPLATE_LEN 10 @@ -110,7 +111,7 @@ int main(void) { struct stat sb, fsb; - char cwd[MAXPATHLEN + 1]; + char cwd[PATH_MAX + 1]; char *p; size_t clen; int i; -- cgit v1.2.3-55-g6feb