[Varnish] #181: osx leopard: unknown sendfile() implementation

Varnish varnish-bugs at projects.linpro.no
Sun Dec 2 16:36:54 CET 2007

#181: osx leopard: unknown sendfile() implementation
 Reporter:  batlogg  |        Owner:  des  
     Type:  defect   |       Status:  new  
 Priority:  normal   |    Milestone:       
Component:  build    |      Version:  1.1.1
 Severity:  normal   |   Resolution:       
 Keywords:           |  
Comment (by supergiantrobot):

 I need to test this fix, which I am doing now, but do get a clean build, I
 added the lines...

 #if defined(__APPLE__)
 #define __FreeBSD__

 to the top of cache_pool.c.

 Also, sendfile() on Mac OS X is different. Line 161 of the file should be
 replaced with ...

   off_t length = len;

   if (sendfile(fd, *w->wfd, off, &length, &sfh, 0) != 0)

 Also, look at the solution to Ticket #118 -- its change must be made, too,
 before varnishd can run.

 More soon... I can submit a Mac OS X-specific patch once I check things

Ticket URL: <http://varnish.projects.linpro.no/ticket/181#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list