pkgsrc/www/varnish/patches/patch-ac

22 lines
619 B
Text

$NetBSD: patch-ac,v 1.1 2006/12/18 11:35:37 joerg Exp $
--- bin/varnishd/cache_pool.c.orig 2006-12-18 11:21:45.000000000 +0000
+++ bin/varnishd/cache_pool.c
@@ -35,7 +35,7 @@
#include <sys/uio.h>
#ifdef HAVE_SENDFILE
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/socket.h>
#elif defined(__linux__)
#include <sys/sendfile.h>
@@ -148,7 +148,7 @@ WRK_Sendfile(struct worker *w, int fd, o
assert(fd >= 0);
assert(len > 0);
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
do {
struct sf_hdtr sfh;
memset(&sfh, 0, sizeof sfh);