diff --git a/configure.in b/configure.in index 11db62d6..49cc43e7 100644 --- a/configure.in +++ b/configure.in @@ -55,7 +55,7 @@ AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \ sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \ getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \ -sys/mman.h sys/event.h sys/port.h winsock2.h pwd.h \ +sys/mman.h sys/event.h sys/port.h winsock2.h pwd.h sys/syslimits.h \ sys/resource.h sys/un.h syslog.h]) # Checks for typedefs, structures, and compiler characteristics. diff --git a/src/response.c b/src/response.c index c01e9454..dcc77124 100644 --- a/src/response.c +++ b/src/response.c @@ -30,6 +30,10 @@ #include #endif +#ifdef HAVE_SYS_SYSLIMITS_H +#include +#endif + int http_response_write_basic_header(server *srv, connection *con) { size_t i; buffer *b;