summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-03-03 23:52:40 +0000
committerJan Kneschke <jan@kneschke.de>2005-03-03 23:52:40 +0000
commit9b59d5800f188940e2edb50e14447d9609224671 (patch)
tree9fcfe71ad866406b36946859ececb78632090585
parenta835b18383ee113a048d6af8e98d017f11931bb0 (diff)
downloadlighttpd-git-9b59d5800f188940e2edb50e14447d9609224671.tar.gz
NAME_MAX needs sys/syslimits.h on cygwin
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@88 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--configure.in2
-rw-r--r--src/response.c4
2 files changed, 5 insertions, 1 deletions
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 <attr/attributes.h>
#endif
+#ifdef HAVE_SYS_SYSLIMITS_H
+#include <sys/syslimits.h>
+#endif
+
int http_response_write_basic_header(server *srv, connection *con) {
size_t i;
buffer *b;