From a83ea57a508362f8f66ecd89131302fba1223637 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 11 Oct 2012 11:20:42 +0100 Subject: sendfile: Use sendfile64 if arch does not have the sendfile syscall Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/stubs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/stubs.c') diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index 419557c6a..43a1b6938 100644 --- a/libc/sysdeps/linux/common/stubs.c +++ b/libc/sysdeps/linux/common/stubs.c @@ -320,7 +320,8 @@ make_stub(sched_setaffinity) make_stub(send) #endif -#if !defined __NR_sendfile && defined __UCLIBC_LINUX_SPECIFIC__ +#if !defined __NR_sendfile && !defined __NR_sendfile64 \ + && defined __UCLIBC_LINUX_SPECIFIC__ make_stub(sendfile) #endif -- cgit v1.2.3