ruby-changes:18172
From: naruse <ko1@a...>
Date: Mon, 13 Dec 2010 18:37:27 +0900 (JST)
Subject: [ruby-changes:18172] Ruby:r30193 (trunk): * io.c: define USE_SENDFILE on FreeBSD or DragonFly BSD.
naruse 2010-12-13 18:37:09 +0900 (Mon, 13 Dec 2010) New Revision: 30193 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30193 Log: * io.c: define USE_SENDFILE on FreeBSD or DragonFly BSD. Remove Mac OS X because its argument is different from them. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30192) +++ ChangeLog (revision 30193) @@ -1,3 +1,8 @@ +Mon Dec 13 18:35:33 2010 NARUSE, Yui <naruse@r...> + + * io.c: define USE_SENDFILE on FreeBSD or DragonFly BSD. + Remove Mac OS X because its argument is different from them. + Mon Dec 13 12:00:09 2010 Tanaka Akira <akr@f...> * file.c: parenthesize macro arguments. Index: io.c =================================================================== --- io.c (revision 30192) +++ io.c (revision 30193) @@ -8216,7 +8216,9 @@ return sendfile(out_fd, in_fd, offset, (size_t)count); } -# elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__APPLE__) +# elif defined(__FreeBSD__) || defined(__DragonFly__) +# define USE_SENDFILE + # ifdef HAVE_SYS_UIO_H # include <sys/uio.h> # endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/