Commit 5a5fc4e3 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r3964: Portability fixes from pkgsrc/NetBSD

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

Fixes #471



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3994 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 91c79621
......@@ -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>
......@@ -208,7 +208,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
assert(fd >= 0);
assert(len > 0);
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__DragonFly__)
do {
struct sf_hdtr sfh;
memset(&sfh, 0, sizeof sfh);
......
......@@ -34,6 +34,7 @@
#include "config.h"
#include <sys/types.h>
#include <curses.h>
#include <errno.h>
#include <limits.h>
......
......@@ -30,6 +30,7 @@
#include "config.h"
#include <sys/types.h>
#include <sys/signal.h>
#include <sys/uio.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment