summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index 0da5965137..4e11744db8 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -61,6 +61,7 @@ Cambridge, MA 02139, USA. */
/* Don't include stdlib.h for non-GNU C libraries because some of them
contain conflicting prototypes for getopt. */
#include <stdlib.h>
+#include <unistd.h>
#endif /* GNU C library. */
#ifndef _