diff options
author | joerg <joerg> | 2006-12-22 21:07:11 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-12-22 21:07:11 +0000 |
commit | d0b83f0f3e65403c09979de02839181a9b168d3b (patch) | |
tree | 46a6862b7a737314b80202e711a69624d90b2ad0 /www/lighttpd/patches | |
parent | 59d13cb7c8d3924f541e3fb4c6a09c54049e2dc1 (diff) | |
download | pkgsrc-d0b83f0f3e65403c09979de02839181a9b168d3b.tar.gz |
Allow sendfile on DragonFly to be compiled in. Bump revision.
Noticed by Peter Avalos.
Diffstat (limited to 'www/lighttpd/patches')
-rw-r--r-- | www/lighttpd/patches/patch-aa | 13 | ||||
-rw-r--r-- | www/lighttpd/patches/patch-ab | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/www/lighttpd/patches/patch-aa b/www/lighttpd/patches/patch-aa new file mode 100644 index 00000000000..233f639e7c3 --- /dev/null +++ b/www/lighttpd/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.5 2006/12/22 21:07:11 joerg Exp $ + +--- src/network_backends.h.orig 2006-12-22 20:42:35.000000000 +0000 ++++ 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/www/lighttpd/patches/patch-ab b/www/lighttpd/patches/patch-ab new file mode 100644 index 00000000000..839582d9492 --- /dev/null +++ b/www/lighttpd/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2006/12/22 21:07:11 joerg Exp $ + +--- src/network_freebsd_sendfile.c.orig 2006-12-22 20:54:33.000000000 +0000 ++++ 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 |