diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 2c49f71f28..e6146ec7f1 100644 --- a/deps/libeio/wscript +++ b/deps/libeio/wscript @@ -67,7 +67,7 @@ def configure(conf): # include #if __linux # include - #elif __freebsd + #elif __FreeBSD__ || defined(__APPLE__) # include # include #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