[PATCH] Support sendfile on darwin
The FreeBSD version of sendfile is already supported. Starting
with OS X 10.5, Darwin also supports sendfile, but using a
slightly different argument list.
Add support for darwin's sendfile by introducing a suitable
macro to adjust the arguments.
Patch file attached.
Updated by stbuehler about 8 years ago
- Target version changed from 1.4.x to 1.4.39
Given that it is obviously not the "freebsd-sendfile" I'd prefer having it in a separate file with a separate name like all the others. (Also I don't see any need to patch the sendfile definition with a macro in the header)
Updated by mackyle about 8 years ago
- File 0001-network_backends.h-support-darwin-sendfile_patch.txt 0001-network_backends.h-support-darwin-sendfile_patch.txt added
Seems a shame to duplicate all that just for one argument difference, but it's trivial enough to do so here it is.
The new network_darwin_sendfile.c is almost an exact duplicate of network_freebsd_sendfile.c.
Also available in: Atom