From 6507c3b84df2758ddcc44d6e761bb50a21120776 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 02:14:24 +0200 Subject: correct sendfile for 32/64 bit archs Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/sendfile64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/sendfile64.c') diff --git a/libc/sysdeps/linux/common/sendfile64.c b/libc/sysdeps/linux/common/sendfile64.c index 2442b808c..705e6fdee 100644 --- a/libc/sysdeps/linux/common/sendfile64.c +++ b/libc/sysdeps/linux/common/sendfile64.c @@ -12,8 +12,9 @@ #include <_lfs_64.h> #include +#include -#ifdef __NR_sendfile64 +#if defined __NR_sendfile64 && __WORDSIZE != 64 # include _syscall4(ssize_t,sendfile64, int, out_fd, int, in_fd, __off64_t *, offset, size_t, count) #endif -- cgit v1.2.3