"Florian Schulze" <[EMAIL PROTECTED]> 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. DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS - www.linpro.no _______________________________________________ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc