aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/getopt.c b/getopt.c
index c5c72a23..b1f854af 100644
--- a/getopt.c
+++ b/getopt.c
@@ -58,9 +58,9 @@
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#ifdef __GNU_LIBRARY__
-/* Don't include stdlib.h for non-GNU C libraries because some of them
- contain conflicting prototypes for getopt. */
+#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__)
+/* Don't include stdlib.h for non-GNU C libraries and non-Cygwin because some
+ of them contain conflicting prototypes for getopt. */
# include <stdlib.h>
# include <unistd.h>
#endif /* GNU C library. */