From 2d2a50961207307104ff16a49d07d6d3a91e0b24 Mon Sep 17 00:00:00 2001 From: glass Date: Mon, 11 Feb 2019 02:12:54 +0000 Subject: io.c: check HAVE_FCOPYFILE git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io.c b/io.c index a2d0534f74..be3799364e 100644 --- a/io.c +++ b/io.c @@ -11304,7 +11304,7 @@ static void * nogvl_copy_stream_func(void *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; #endif @@ -11328,7 +11328,7 @@ nogvl_copy_stream_func(void *arg) 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: #endif return 0; -- cgit v1.2.3