diff --git a/src/config-win32.h b/src/config-win32.h index 562b60590b34cb6924286d4029fb6c3d68c923f1..f357dfb6a9911f0187554def1680daa764f02116 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -8,6 +8,9 @@ /* Define if you have the header file. */ #define HAVE_IO_H 1 +/* Define if you have the 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 aac07bef2c0dc204a1d8523f43e6dfd0729e5cc4..bd757a554d637cf630673f45d9d86bb519c29056 100644 --- a/src/main.c +++ b/src/main.c @@ -88,6 +88,10 @@ #endif +#ifdef HAVE_LIMITS_H +#include +#endif + #ifdef HAVE_SYS_POLL_H #include #endif diff --git a/src/setup.h b/src/setup.h index 4dfb1046661a5a447dbab389679e28f1e82fd925..7e8428d70fe2e15f1061e70f02ca2354c2453aca 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