summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/fnmatch/fnmatch.c1
-rw-r--r--libc/misc/regex/regex_old.c1
2 files changed, 2 insertions, 0 deletions
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>