aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9d75d0cd92..30767af695 100644
--- a/io.c
+++ b/io.c
@@ -8216,7 +8216,9 @@ simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count)
return sendfile(out_fd, in_fd, offset, (size_t)count);
}
-# elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__APPLE__)
+# elif defined(__FreeBSD__) || defined(__DragonFly__)
+# define USE_SENDFILE
+
# ifdef HAVE_SYS_UIO_H
# include <sys/uio.h>
# endif