summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/netlinkaccess.h1
-rw-r--r--libc/misc/fnmatch/fnmatch.c1
-rw-r--r--libc/misc/regex/regex_old.c1
-rw-r--r--libc/stdlib/malloc-simple/alloc.c1
-rw-r--r--libc/sysdeps/linux/nios/crtend.c1
-rw-r--r--libc/unistd/fpathconf.c1
6 files changed, 4 insertions, 2 deletions
diff --git a/libc/inet/netlinkaccess.h b/libc/inet/netlinkaccess.h
index f2a3ac0f8..2fa0d76b3 100644
--- a/libc/inet/netlinkaccess.h
+++ b/libc/inet/netlinkaccess.h
@@ -21,6 +21,7 @@
#include <features.h>
#include <stdint.h>
+#include <unistd.h>
#include <sys/types.h>
#define _LINUX_TYPES_H
diff --git a/libc/misc/fnmatch/fnmatch.c b/libc/misc/fnmatch/fnmatch.c
index 000b787e4..8592d4cf6 100644
--- a/libc/misc/fnmatch/fnmatch.c
+++ b/libc/misc/fnmatch/fnmatch.c
@@ -41,6 +41,7 @@
#include <errno.h>
#include <fnmatch.h>
#include <ctype.h>
+#include <unistd.h>
#if HAVE_STRING_H || defined _LIBC
# include <string.h>
diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c
index 7a9c4d7e0..b79b41aa3 100644
--- a/libc/misc/regex/regex_old.c
+++ b/libc/misc/regex/regex_old.c
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+#include <unistd.h>
#include <malloc.h>
#include <stdio.h>
diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c
index dfeabb6d9..13d4166a7 100644
--- a/libc/stdlib/malloc-simple/alloc.c
+++ b/libc/stdlib/malloc-simple/alloc.c
@@ -13,7 +13,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
diff --git a/libc/sysdeps/linux/nios/crtend.c b/libc/sysdeps/linux/nios/crtend.c
index bef6f513d..29af728a9 100644
--- a/libc/sysdeps/linux/nios/crtend.c
+++ b/libc/sysdeps/linux/nios/crtend.c
@@ -1,5 +1,6 @@
#include <errno.h>
#include <stdlib.h>
+#include <unistd.h>
/*
static void (*__CTOR_END__[1]) __P((void))
__attribute__((section(".ctors"))) = { (void *)-1 };
diff --git a/libc/unistd/fpathconf.c b/libc/unistd/fpathconf.c
index 9cb66a927..23b628f48 100644
--- a/libc/unistd/fpathconf.c
+++ b/libc/unistd/fpathconf.c
@@ -23,7 +23,6 @@
#include <sys/statfs.h>
#include <errno.h>
#include <stddef.h>
-#include <unistd.h>
#include <limits.h>
#include <fcntl.h>
#include <sys/stat.h>