aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-06-01 18:12:23 +0200
committerJuergen Kahrs <Juergen.Kahrs@googlemail.com>2013-06-01 18:12:23 +0200
commit37be8a17ee9e955dec8bbddb8cd2b31487e44a0c (patch)
treeaf9323636c991634144ddb5532d975f08ac56282 /getopt.c
parent1a4fe61b7ad390740a0c70a0175b82301c083704 (diff)
parent5482bf19246965d6839fe9df1aec0785f0b1a329 (diff)
downloadegawk-37be8a17ee9e955dec8bbddb8cd2b31487e44a0c.tar.gz
egawk-37be8a17ee9e955dec8bbddb8cd2b31487e44a0c.tar.bz2
egawk-37be8a17ee9e955dec8bbddb8cd2b31487e44a0c.zip
Merge remote-tracking branch 'origin/master' into cmake
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/getopt.c b/getopt.c
index e27848da..7679991d 100644
--- a/getopt.c
+++ b/getopt.c
@@ -57,11 +57,12 @@
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__)
+#if defined (__GNU_LIBRARY__) || defined (__CYGWIN__) || defined(__DJGPP__) || defined(__APPLE__) || defined(__MINGW32__)
/* Don't include stdlib.h for
* non-GNU C libraries
* non-Cygwin
* non-DJGPP
+ * non-MinGW
* because some of them contain conflicting prototypes for getopt. */
# include <stdlib.h>
# include <unistd.h>