io.c: check HAVE_FCOPYFILE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c84a25e148
commit
2d2a509612
4
io.c
4
io.c
@ -11304,7 +11304,7 @@ static void *
|
|||||||
nogvl_copy_stream_func(void *arg)
|
nogvl_copy_stream_func(void *arg)
|
||||||
{
|
{
|
||||||
struct copy_stream_struct *stp = (struct copy_stream_struct *)arg;
|
struct copy_stream_struct *stp = (struct copy_stream_struct *)arg;
|
||||||
#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE)
|
#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE) || defined(HAVE_FCOPYFILE)
|
||||||
int ret;
|
int ret;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -11328,7 +11328,7 @@ nogvl_copy_stream_func(void *arg)
|
|||||||
|
|
||||||
nogvl_copy_stream_read_write(stp);
|
nogvl_copy_stream_read_write(stp);
|
||||||
|
|
||||||
#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE)
|
#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE) || defined(HAVE_FCOPYFILE)
|
||||||
finish:
|
finish:
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user