From c28cabb17933d98c9046d4b2492e39757bbacf5a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 01:20:21 +0200 Subject: Reorder includes and include only what is necessary Use param.h instead of MIN. Use stddef.h instead of offsetof. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/sendfile.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (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 89bab9f35..80f2e2ea4 100644 --- a/libc/sysdeps/linux/common/sendfile.c +++ b/libc/sysdeps/linux/common/sendfile.c @@ -8,16 +8,12 @@ */ #include -#include -#include #ifdef __NR_sendfile - +# include _syscall4(ssize_t, sendfile, int, out_fd, int, in_fd, __off_t *, offset, - size_t, count) - -#if ! defined __NR_sendfile64 && defined __UCLIBC_HAS_LFS__ + size_t, count) +# if ! defined __NR_sendfile64 && defined __UCLIBC_HAS_LFS__ strong_alias(sendfile,sendfile64) +# endif #endif - -#endif /* __NR_sendfile */ -- cgit v1.2.3