summaryrefslogtreecommitdiff
path: root/src/include/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/lib.h')
-rw-r--r--src/include/lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/lib.h b/src/include/lib.h
index bebad98e..30ccf4de 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -31,14 +31,15 @@ extern "C" {
const char *if_to_a(int, int);
}
-/* stdio.h on IRIX, OSF/1, emx, and UWIN include getopt.h */
+/* stdio.h on IRIX, OSF/1, emx, UWIN, and MinGW include getopt.h */
/* unistd.h on CYGWIN includes getopt.h */
#if !(defined(__sgi) \
|| (defined(__osf__) && defined(__alpha)) \
|| defined(_UWIN) \
|| defined(__EMX__) \
- || defined(__CYGWIN__))
+ || defined(__CYGWIN__) \
+ || defined(__MINGW32__))
#include <groff-getopt.h>
#else
#include <getopt.h>