diff options
Diffstat (limited to 'openbsd-compat/bsd-closefrom.c')
-rw-r--r-- | openbsd-compat/bsd-closefrom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-closefrom.c b/openbsd-compat/bsd-closefrom.c index 7509d2835..3f17302d1 100644 --- a/openbsd-compat/bsd-closefrom.c +++ b/openbsd-compat/bsd-closefrom.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <limits.h> | 25 | #include <limits.h> |
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include <stddef.h> | 27 | #include <stddef.h> |
28 | #include <string.h> | ||
29 | #include <unistd.h> | ||
28 | #ifdef HAVE_DIRENT_H | 30 | #ifdef HAVE_DIRENT_H |
29 | # include <dirent.h> | 31 | # include <dirent.h> |
30 | # define NAMLEN(dirent) strlen((dirent)->d_name) | 32 | # define NAMLEN(dirent) strlen((dirent)->d_name) |