Commit 41bdf69d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dike out Linux senfile, it doesn't work.

Isolated by:	Xing Li <xing@litespeedtech.com>


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@978 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5731894a
......@@ -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);
}
......
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