1: sync wscript with libeio.m4 2: try to enable macosx's sendfile.

This commit is contained in:
Vanilla Hsu
2010-03-12 12:05:47 +08:00
committed by Ryan Dahl
parent c96b7e5ca0
commit 116dfb8740

6
deps/libeio/wscript vendored
View File

@@ -67,7 +67,7 @@ def configure(conf):
# include <sys/types.h>
#if __linux
# include <sys/sendfile.h>
#elif __freebsd
#elif __FreeBSD__ || defined(__APPLE__)
# include <sys/socket.h>
# include <sys/uio.h>
#elif __hpux
@@ -83,8 +83,10 @@ def configure(conf):
ssize_t res;
#if __linux
res = sendfile (fd, fd, offset, count);
#elif __freebsd
#elif __FreeBSD__
res = sendfile (fd, fd, offset, count, 0, &offset, 0);
#elif __APPLE__
res = sendfile (fd, fd, offset, &offset, 0, 0);
#elif __hpux
res = sendfile (fd, fd, offset, count, 0, 0);
#endif