diff options
Diffstat (limited to 'src/regress/lib/libc/mkstemp/mkstemp_test.c')
-rw-r--r-- | src/regress/lib/libc/mkstemp/mkstemp_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
8 | * contain any X's | 8 | * contain any X's |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <sys/param.h> | 11 | #include <sys/types.h> |
12 | #include <sys/mman.h> | 12 | #include <sys/mman.h> |
13 | #include <sys/stat.h> | 13 | #include <sys/stat.h> |
14 | 14 | ||
@@ -17,6 +17,7 @@ | |||
17 | #include <stdio.h> | 17 | #include <stdio.h> |
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | #include <string.h> | 19 | #include <string.h> |
20 | #include <limits.h> | ||
20 | #include <unistd.h> | 21 | #include <unistd.h> |
21 | 22 | ||
22 | #define MAX_TEMPLATE_LEN 10 | 23 | #define MAX_TEMPLATE_LEN 10 |
@@ -110,7 +111,7 @@ int | |||
110 | main(void) | 111 | main(void) |
111 | { | 112 | { |
112 | struct stat sb, fsb; | 113 | struct stat sb, fsb; |
113 | char cwd[MAXPATHLEN + 1]; | 114 | char cwd[PATH_MAX + 1]; |
114 | char *p; | 115 | char *p; |
115 | size_t clen; | 116 | size_t clen; |
116 | int i; | 117 | int i; |