diff options
author | petef <petef@FreeBSD.org> | 2001-08-24 00:19:33 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-08-24 00:19:33 +0000 |
commit | b61128c7c28491d69cfbcc9d97b07f79999b4efc (patch) | |
tree | b5a13408076ec1fa74051f5fbff6e65e7e662910 /www/thttpd | |
parent | b5bae9fc2f30837de6329310d8672bb49eba7968 (diff) | |
download | FreeBSD-ports-b61128c7c28491d69cfbcc9d97b07f79999b4efc.zip FreeBSD-ports-b61128c7c28491d69cfbcc9d97b07f79999b4efc.tar.gz |
Fix kqueue support for -current
PR: 30009
Submitted by: maintainer
Reviewed by: ade
Diffstat (limited to 'www/thttpd')
-rw-r--r-- | www/thttpd/Makefile | 9 | ||||
-rw-r--r-- | www/thttpd/files/patch-fdwatch.c | 31 |
2 files changed, 12 insertions, 28 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index 3aaa6dc..5abeff2 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -19,13 +19,6 @@ IGNOREFILES= notes.html GNU_CONFIGURE= yes -.include <bsd.port.pre.mk> - -# Kqueue doesn't work in -current with thttpd. -.if ${OSVERSION} >= 500000 -CFLAGS+= -DHAVE_FREEBSD_CURRENT -.endif - MAN1= makeweb.1 htpasswd.1 MAN8= thttpd.8 redirect.8 ssi.8 syslogtocern.8 @@ -87,4 +80,4 @@ config-message: @${ECHO} "" @${ECHO} "=====================================================================" -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/www/thttpd/files/patch-fdwatch.c b/www/thttpd/files/patch-fdwatch.c index da59f03..7e5b918 100644 --- a/www/thttpd/files/patch-fdwatch.c +++ b/www/thttpd/files/patch-fdwatch.c @@ -1,21 +1,12 @@ ---- fdwatch.c.orig Tue Apr 24 18:40:22 2001 -+++ fdwatch.c Tue Apr 24 19:00:57 2001 -@@ -32,6 +32,7 @@ - #include <sys/time.h> - #include <sys/resource.h> - #include <syslog.h> -+#include <sys/param.h> +--- fdwatch.c.orig Fri Aug 24 00:19:39 2001 ++++ fdwatch.c Fri Aug 24 00:20:30 2001 +@@ -311,6 +311,9 @@ + if ( kqchanges == (struct kevent*) 0 || kqevents == (struct kevent*) 0 || + kqrfdidx == (int*) 0 ) + return -1; ++ memset(kqchanges, '\0', sizeof(struct kevent) * 2 * nfiles); ++ memset(kqevents, '\0', sizeof(struct kevent) * nfiles); ++ memset(kqrfdidx, '\0', sizeof(int) * nfiles); + return 0; + } - #ifndef MIN - #define MIN(a,b) ((a) < (b) ? (a) : (b)) -@@ -44,6 +45,10 @@ - #include <sys/poll.h> - #endif /* HAVE_SYS_POLL_H */ - #endif /* HAVE_POLL_H */ -+ -+#ifdef HAVE_FREEBSD_CURRENT -+#undef HAVE_KQUEUE -+#endif - - #ifdef HAVE_SYS_EVENT_H - #include <sys/event.h> |