summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 8f640e2fcd..22b82bba8d 100644
--- a/io.c
+++ b/io.c
@@ -6517,7 +6517,9 @@ static VALUE
copy_stream_func(void *arg)
{
struct copy_stream_struct *stp = (struct copy_stream_struct *)arg;
+#ifdef USE_SENDFILE
int ret;
+#endif
#ifdef USE_SENDFILE
ret = copy_stream_sendfile(stp);
@@ -6527,7 +6529,9 @@ copy_stream_func(void *arg)
copy_stream_read_write(stp);
+#ifdef USE_SENDFILE
finish:
+#endif
return Qnil;
}