r762 - trunk/varnish-cache/bin/varnishd

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Aug 8 09:55:18 CEST 2006

In message <ujrzmef7jl0.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgra
v?= writes:
>"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> Tacitly assuming that a HAVE_SENDFILE test will fill in config.h
>> at some point :-)
>The problem is that FreeBSD and Linux both have sendfile(), but they
>are not compatible with eachother, so more elaborate checks and
>conditionals are required.


Can we do it such that "HAVE_SENDFILE" means "HAVE_SOME_KIND_OF_SENDFILE"
and use that in cache_response.c and then handle the differences
in cache_pool.c ?

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-commit mailing list