From 394e4d9511c6c8d4f614bea18a1498ae1d06a110 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 13 Sep 2006 19:07:52 +0000 Subject: [PATCH] Dike out Linux senfile, it doesn't work. Isolated by: Xing Li git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@978 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_response.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index f0dcacea..3328bb21 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -226,6 +226,7 @@ RES_WriteObj(struct sess *sp) AN(st->stevedore); u += st->len; sp->wrk->acct.bodybytes += st->len; +#ifdef __FreeBSD__ #ifdef HAVE_SENDFILE /* * XXX: the overhead of setting up senddile is not @@ -241,6 +242,7 @@ RES_WriteObj(struct sess *sp) continue; } #endif /* HAVE_SENDFILE */ +#endif /* __FreeBSD__ */ VSL_stats->n_objwrite++; WRK_Write(sp->wrk, st->ptr, st->len); } -- 2.39.5