aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config-win32.h3
-rw-r--r--src/main.c4
-rw-r--r--src/setup.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/config-win32.h b/src/config-win32.h
index 562b60590..f357dfb6a 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -8,6 +8,9 @@
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
+/* Define if you have the <limits.h> header file */
+#define HAVE_LIMITS_H 1
+
/* Define if you have the strdup function. */
#define HAVE_STRDUP 1
diff --git a/src/main.c b/src/main.c
index aac07bef2..bd757a554 100644
--- a/src/main.c
+++ b/src/main.c
@@ -88,6 +88,10 @@
#endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
diff --git a/src/setup.h b/src/setup.h
index 4dfb10466..7e8428d70 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -92,6 +92,7 @@ int fileno( FILE *stream);
#ifdef word
#undef word
#endif
+#define HAVE_LIMITS_H /* we have limits.h */
#define DIR_CHAR "/"
#define DOT_CHAR "_"
#else