* 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
This commit is contained in:
naruse 2010-12-13 09:37:09 +00:00
Родитель b130018e86
Коммит 7d481b5423
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Dec 13 18:35:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
* 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@fsij.org> Mon Dec 13 12:00:09 2010 Tanaka Akira <akr@fsij.org>
* file.c: parenthesize macro arguments. * file.c: parenthesize macro arguments.

4
io.c
Просмотреть файл

@ -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); 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 # ifdef HAVE_SYS_UIO_H
# include <sys/uio.h> # include <sys/uio.h>
# endif # endif