From: Nobuyoshi Nakada Date: 2012-02-25T16:26:32+09:00 Subject: [ruby-dev:45286] Re: [ruby-dev:45285] [ruby-trunk - Feature #6082][Open] io_binwrite()内でwritev()を使う なかだです。 (12/02/25 13:33), Masaki Matsushita wrote: > patchを添付します。 sys/uio.hが必要です。 diff --git i/configure.in w/configure.in index c760c53..67f5a54 100644 --- i/configure.in +++ w/configure.in @@ -1144,7 +1144,7 @@ AC_CHECK_HEADERS(limits.h sys/file.h sys/ioctl.h sys/syscall.h\ syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \ sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \ ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \ - net/socket.h sys/socket.h process.h sys/prctl.h) + net/socket.h sys/socket.h process.h sys/prctl.h sys/uio.h) AC_TYPE_SIZE_T RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include ]) diff --git i/io.c w/io.c index bbaf72c..3173d85 100644 --- i/io.c +++ w/io.c @@ -78,6 +78,10 @@ #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif + #if defined(__BEOS__) || defined(__HAIKU__) # ifndef NOFILE # define NOFILE (OPEN_MAX) @@ -9452,10 +9456,6 @@ simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count) */ # define USE_SENDFILE -# ifdef HAVE_SYS_UIO_H -# include -# endif - static ssize_t simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count) { -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦