The revenge of the return of 1.1.2

Dag-Erling Smørgrav des at
Wed Dec 19 15:09:20 CET 2007

"Florian Schulze" <florian.schulze at> writes:
> I just fetched the 1.1 branch r2308 and tried to compile on Mac OS X
> Leopard.
> cache_pool.c:43:2: error: #error Unknown sendfile() implementation
> cache_pool.c:173:2: error: #error Unknown sendfile() implementation
> make[3]: *** [varnishd-cache_pool.o] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Ah, yes.  Both Linux and FreeBSD have sendfile(), but with different
argument lists and slightly different semantics, so we check for
__FreeBSD__ or __linux__ when using sendfile().  This didn't use to be
a problem, because AFAIK Mac OS X didn't have sendfile() before
Leopard.  I imagine Leopard's sendfile() works like FreeBSD's, but I
don't have a Leopard box to test on (my Mac is too old to run it).  I
can change cache_pool.c so just ignores HAVE_SENDFILE in the !(FreeBSD
|| Linux) case, however.

Dag-Erling Smørgrav
Senior Software Developer
Linpro AS -

More information about the varnish-misc mailing list