r3964 - in trunk/varnish-cache/bin: varnishd varnishhist varnishreplay

tfheen at projects.linpro.no tfheen at projects.linpro.no
Fri Mar 20 11:12:05 CET 2009


Author: tfheen
Date: 2009-03-20 11:12:05 +0100 (Fri, 20 Mar 2009)
New Revision: 3964

Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
   trunk/varnish-cache/bin/varnishhist/varnishhist.c
   trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
Log:
Portability fixes from pkgsrc/NetBSD

Apply portability patches from pkgsrc, thanks to michael for
forwarding those.

Fixes #471


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2009-03-20 09:43:36 UTC (rev 3963)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2009-03-20 10:12:05 UTC (rev 3964)
@@ -48,7 +48,7 @@
 #include <sys/uio.h>
 
 #ifdef SENDFILE_WORKS
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/socket.h>
 #elif defined(__linux__)
 #include <sys/sendfile.h>
@@ -209,7 +209,7 @@
 	assert(fd >= 0);
 	assert(len > 0);
 
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 	do {
 		struct sf_hdtr sfh;
 		memset(&sfh, 0, sizeof sfh);

Modified: trunk/varnish-cache/bin/varnishhist/varnishhist.c
===================================================================
--- trunk/varnish-cache/bin/varnishhist/varnishhist.c	2009-03-20 09:43:36 UTC (rev 3963)
+++ trunk/varnish-cache/bin/varnishhist/varnishhist.c	2009-03-20 10:12:05 UTC (rev 3964)
@@ -34,6 +34,7 @@
 
 #include "config.h"
 
+#include <sys/types.h>
 #include <curses.h>
 #include <errno.h>
 #include <limits.h>

Modified: trunk/varnish-cache/bin/varnishreplay/varnishreplay.c
===================================================================
--- trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2009-03-20 09:43:36 UTC (rev 3963)
+++ trunk/varnish-cache/bin/varnishreplay/varnishreplay.c	2009-03-20 10:12:05 UTC (rev 3964)
@@ -30,6 +30,7 @@
 
 #include "config.h"
 
+#include <sys/types.h>
 #include <sys/signal.h>
 #include <sys/uio.h>
 



More information about the varnish-commit mailing list