aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 15:22:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 15:22:54 +0000
commit1349369a89208a1f7a4a1b2ff2bd6ec9fdc0ff37 (patch)
tree2dcbd0d538bb0fdc4833f27b56809147c86a2b9a /io.c
parente4a0b391ea5313b03638711940ccb0804e84ef85 (diff)
downloadruby-1349369a89208a1f7a4a1b2ff2bd6ec9fdc0ff37.tar.gz
Fix compile error when USE_COPY_FILE_RANGE is defined but not USE_SENDFILE
io.c: Variable and label definition are necessary in both cases. From: Lars Kanis <lars@greiz-reinsdorf.de> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 0a4e66f5ed..82c5940538 100644
--- a/io.c
+++ b/io.c
@@ -11133,7 +11133,7 @@ static void *
nogvl_copy_stream_func(void *arg)
{
struct copy_stream_struct *stp = (struct copy_stream_struct *)arg;
-#ifdef USE_SENDFILE
+#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE)
int ret;
#endif
@@ -11151,7 +11151,7 @@ nogvl_copy_stream_func(void *arg)
nogvl_copy_stream_read_write(stp);
-#ifdef USE_SENDFILE
+#if defined(USE_SENDFILE) || defined(USE_COPY_FILE_RANGE)
finish:
#endif
return 0;