]> err.no Git - varnish/commitdiff
Dike out Linux senfile, it doesn't work.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Sep 2006 19:07:52 +0000 (19:07 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 13 Sep 2006 19:07:52 +0000 (19:07 +0000)
Isolated by: Xing Li <xing@litespeedtech.com>

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@978 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_response.c

index f0dcacea0a0b04339ba3c1f1c9835cd56ca3ad67..3328bb214d1015eeb7765883fd9be408d5105ba9 100644 (file)
@@ -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);
                }