summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Rückert <darix@opensu.se>2006-12-29 05:32:44 +0000
committerMarcus Rückert <darix@opensu.se>2006-12-29 05:32:44 +0000
commitf65fe7607cf1ff6ef199535de20f4ec6dae9fb28 (patch)
tree2d50061261af23e1282595b04757cfe3fe16c171
parentcbb0207ebfc6603367cc19f1ca27bce8ffc82db5 (diff)
downloadlighttpd-git-f65fe7607cf1ff6ef199535de20f4ec6dae9fb28.tar.gz
- Handle DragonFlyBSD the same way as Freebsd.
Patch by Jörg Sonnenberger git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1492 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/network_backends.h2
-rw-r--r--src/network_freebsd_sendfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network_backends.h b/src/network_backends.h
index 94650a7d..3cb36afa 100644
--- a/src/network_backends.h
+++ b/src/network_backends.h
@@ -14,7 +14,7 @@
# include <sys/uio.h>
#endif
-#if defined HAVE_SYS_UIO_H && defined HAVE_SENDFILE && defined HAVE_WRITEV && defined(__FreeBSD__)
+#if defined HAVE_SYS_UIO_H && defined HAVE_SENDFILE && defined HAVE_WRITEV && (defined(__FreeBSD__) || defined(__DragonFly__))
# define USE_FREEBSD_SENDFILE
# include <sys/uio.h>
#endif
diff --git a/src/network_freebsd_sendfile.c b/src/network_freebsd_sendfile.c
index 819d16f4..b6b1abe6 100644
--- a/src/network_freebsd_sendfile.c
+++ b/src/network_freebsd_sendfile.c
@@ -25,7 +25,7 @@
#ifndef UIO_MAXIOV
-# ifdef __FreeBSD__
+# if defined(__FreeBSD__) || defined(__DragonFly__)
/* FreeBSD 4.7, 4.9 defined it in sys/uio.h only if _KERNEL is specified */
# define UIO_MAXIOV 1024
# endif