From 9b59d5800f188940e2edb50e14447d9609224671 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Thu, 3 Mar 2005 23:52:40 +0000 Subject: [PATCH] NAME_MAX needs sys/syslimits.h on cygwin git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@88 152afb58-edef-0310-8abb-c4023f1b3aa9 --- configure.in | 2 +- src/response.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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;