diff --git a/configure b/configure index 199d569b9ba..5296f0a60a5 100755 --- a/configure +++ b/configure @@ -7034,6 +7034,7 @@ done + for ac_header in \ @@ -7106,6 +7107,7 @@ for ac_header in \ sys/filio.h \ sys/ioctl.h \ sys/ipc.h \ + sys/limits.h \ sys/link.h \ sys/lwp.h \ sys/mman.h \ diff --git a/configure.ac b/configure.ac index 2a6aee08638..20feb2f8d60 100644 --- a/configure.ac +++ b/configure.ac @@ -241,6 +241,7 @@ AC_CHECK_HEADERS(\ sys/filio.h \ sys/ioctl.h \ sys/ipc.h \ + sys/limits.h \ sys/link.h \ sys/lwp.h \ sys/mman.h \ diff --git a/dlls/kernel/time.c b/dlls/kernel/time.c index 5f3a275956a..52082353729 100644 --- a/dlls/kernel/time.c +++ b/dlls/kernel/time.c @@ -33,7 +33,9 @@ #ifdef HAVE_SYS_TIMES_H # include #endif -#ifdef HAVE_MACHINE_LIMITS_H +#ifdef HAVE_SYS_LIMITS_H +#include +#elif defined(HAVE_MACHINE_LIMITS_H) #include #endif diff --git a/include/config.h.in b/include/config.h.in index 48ae78ea63d..c075484819f 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -644,6 +644,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IPC_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_LIMITS_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_LINK_H