aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
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 053a4604..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__) || defined(__APPLE__)
+#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>