about summary refs log tree commit diff
path: root/src/linux/sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/sendfile.c')
-rw-r--r--src/linux/sendfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/sendfile.c b/src/linux/sendfile.c
index bfbc40ae..818b19d3 100644
--- a/src/linux/sendfile.c
+++ b/src/linux/sendfile.c
@@ -4,7 +4,7 @@
 
 ssize_t sendfile(int out_fd, int in_fd, off_t *ofs, size_t count)
 {
-	return syscall4(__NR_sendfile, out_fd, in_fd, (long)ofs, count);
+	return syscall(SYS_sendfile, out_fd, in_fd, ofs, count);
 }
 
 LFS64(sendfile);