From: Vanilla Hsu Date: Fri, 12 Mar 2010 04:05:47 +0000 (+0800) Subject: 1: sync wscript with libeio.m4 2: try to enable macosx's sendfile. X-Git-Tag: v0.1.32~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=116dfb87403af2f08d163dd8bf39f2ffaf7a4754;p=platform%2Fupstream%2Fnodejs.git 1: sync wscript with libeio.m4 2: try to enable macosx's sendfile. --- diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 2c49f71..e6146ec 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