diff options
Diffstat (limited to 'src/temp')
-rw-r--r-- | src/temp/__randname.c | 1 | ||||
-rw-r--r-- | src/temp/mkdtemp.c | 5 | ||||
-rw-r--r-- | src/temp/mktemp.c | 4 |
3 files changed, 2 insertions, 8 deletions
diff --git a/src/temp/__randname.c b/src/temp/__randname.c index 38c99d3f..464b83d5 100644 --- a/src/temp/__randname.c +++ b/src/temp/__randname.c @@ -1,4 +1,3 @@ -#include <string.h> #include <time.h> #include <stdint.h> diff --git a/src/temp/mkdtemp.c b/src/temp/mkdtemp.c index 195e9cba..6c2c16ef 100644 --- a/src/temp/mkdtemp.c +++ b/src/temp/mkdtemp.c @@ -1,12 +1,7 @@ #include <string.h> -#include <stdio.h> #include <stdlib.h> -#include <fcntl.h> -#include <unistd.h> -#include <limits.h> #include <errno.h> #include <sys/stat.h> -#include "libc.h" char *__randname(char *); diff --git a/src/temp/mktemp.c b/src/temp/mktemp.c index 67130e16..4ab0df20 100644 --- a/src/temp/mktemp.c +++ b/src/temp/mktemp.c @@ -1,6 +1,6 @@ +#define _GNU_SOURCE #include <string.h> -#include <fcntl.h> -#include <unistd.h> +#include <stdlib.h> #include <errno.h> #include <sys/stat.h> |