summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/sendfile.c')
-rw-r--r--libc/sysdeps/linux/common/sendfile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/sendfile.c b/libc/sysdeps/linux/common/sendfile.c
index ba3734f09..fe0629ca3 100644
--- a/libc/sysdeps/linux/common/sendfile.c
+++ b/libc/sysdeps/linux/common/sendfile.c
@@ -10,5 +10,13 @@
#include "syscalls.h"
#include <unistd.h>
#include <sys/sendfile.h>
+
_syscall4(ssize_t, sendfile, int, out_fd, int, in_fd, __off_t *, offset,
size_t, count);
+
+#if ! defined __NR_sendfile64 && defined __UCLIBC_HAS_LFS__
+extern __typeof(sendfile) sendfile64;
+libc_hidden_proto(sendfile64)
+strong_alias(sendfile,sendfile64)
+libc_hidden_def(sendfile64)
+#endif