From 2c3ece881d4d8719862a02a5484ef11c53f2f851 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 21 Mar 2008 06:58:23 +0000 Subject: michael_d writes in [#2064]: fix building on linux-2.0 systems --- libc/sysdeps/linux/common/sendfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common/sendfile.c') diff --git a/libc/sysdeps/linux/common/sendfile.c b/libc/sysdeps/linux/common/sendfile.c index 13cbdebc6..18427e85b 100644 --- a/libc/sysdeps/linux/common/sendfile.c +++ b/libc/sysdeps/linux/common/sendfile.c @@ -17,9 +17,13 @@ #undef sendfile64 +#ifdef __NR_sendfile + _syscall4(ssize_t, sendfile, int, out_fd, int, in_fd, __off_t *, offset, size_t, count); #if ! defined __NR_sendfile64 && defined __UCLIBC_HAS_LFS__ strong_alias(sendfile,sendfile64) #endif + +#endif /* __NR_sendfile */ -- cgit v1.2.3