From: phk Date: Wed, 13 Sep 2006 19:07:52 +0000 (+0000) Subject: Dike out Linux senfile, it doesn't work. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=394e4d9511c6c8d4f614bea18a1498ae1d06a110;p=varnish 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 --- 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); }