summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMasaki Matsushita <glass.saga@gmail.com>2020-09-12 13:36:53 +0900
committerMasaki Matsushita <glass.saga@gmail.com>2020-09-12 16:07:35 +0900
commit012785ef352d6eee983e087adad71692b3aeb354 (patch)
tree5ff998f3d576f1b7e76fd6d3a2e95a45f6b3da36 /io.c
parentae508633b7798dd600fd5c6d5095af5361b28c70 (diff)
Check copy_file_range(2) is actually supported.
see also: https://gitlab.com/gitlab-org/gitlab/-/issues/218999#note_363225872
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 0d6e217857..3cf0285717 100644
--- a/io.c
+++ b/io.c
@@ -11074,10 +11074,6 @@ nogvl_copy_stream_wait_write(struct copy_stream_struct *stp)
return 0;
}
-#if defined HAVE_COPY_FILE_RANGE || (defined __linux__ && defined __NR_copy_file_range)
-# define USE_COPY_FILE_RANGE
-#endif
-
#ifdef USE_COPY_FILE_RANGE
static ssize_t