diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-13 09:37:09 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-13 09:37:09 +0000 |
commit | 7d481b5423de7312f3fe0f79539fbe342d69dae8 (patch) | |
tree | 122b8a26c227bd30ac212156de2d5e7f3e8e4c62 /io.c | |
parent | b130018e86173b15b4cbb68f3821bcb695bd8528 (diff) | |
download | ruby-7d481b5423de7312f3fe0f79539fbe342d69dae8.tar.gz |
* io.c: define USE_SENDFILE on FreeBSD or DragonFly BSD.
Remove Mac OS X because its argument is different from them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8216,7 +8216,9 @@ simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count) 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 |