aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-04-08 12:21:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-04-08 12:21:35 +0300
commitdb344a800133d00132fd85b546532affb4b3cf77 (patch)
treec94602c6383114c883e437aa48b31cd231f3234b /getopt.c
parent0714b773d7f4853fb2ba95a7b36d0230bad81dc9 (diff)
parentabde9f31440e862d4fd51605d8fade099b602cb5 (diff)
downloadegawk-db344a800133d00132fd85b546532affb4b3cf77.tar.gz
egawk-db344a800133d00132fd85b546532affb4b3cf77.tar.bz2
egawk-db344a800133d00132fd85b546532affb4b3cf77.zip
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/getopt.c b/getopt.c
index b1f854af..58df01a0 100644
--- a/getopt.c
+++ b/getopt.c
@@ -58,9 +58,12 @@
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#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. */
+#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(DJGPP)
+/* Don't include stdlib.h for
+ * non-GNU C libraries
+ * non-Cygwin
+ * non-DJGPP
+ * because some of them contain conflicting prototypes for getopt. */
# include <stdlib.h>
# include <unistd.h>
#endif /* GNU C library. */