From 93b4dc9ccfb0c6e1872397b53e97fba9e799a7ad Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Mon, 22 Sep 2008 13:16:55 +0000 Subject: Add work-around for powerpc. Do noy use syscall wrapper based on INTERNAL_SYSCALL. A proper fix would require an arch specific implementation. Signed-off-by: Carmelo Amoroso --- libc/sysdeps/linux/common/posix_fadvise64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/posix_fadvise64.c b/libc/sysdeps/linux/common/posix_fadvise64.c index 03e25ed93..061718e9a 100644 --- a/libc/sysdeps/linux/common/posix_fadvise64.c +++ b/libc/sysdeps/linux/common/posix_fadvise64.c @@ -25,7 +25,7 @@ #define __NR_posix_fadvise64 __NR_fadvise64_64 -#ifdef INTERNAL_SYSCALL +#if defined INTERNAL_SYSCALL && ! defined __TARGET_powerpc__ int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advice) { if (len != (off_t) len) @@ -56,7 +56,7 @@ int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advice) /* 32 bit implementation is kind of a pita */ #elif __WORDSIZE == 32 -#ifdef INTERNAL_SYSCALL +#if defined INTERNAL_SYSCALL && ! defined __TARGET_powerpc__ int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advice) { INTERNAL_SYSCALL_DECL (err); -- cgit v1.2.3