diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-22 13:16:55 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-09-22 13:16:55 +0000 |
commit | 93b4dc9ccfb0c6e1872397b53e97fba9e799a7ad (patch) | |
tree | 22806eb211e7b4d1622b5b2002e0c227294f9f09 /libc | |
parent | 8c5150190e17e0575ba0cdbc6c2f917caa7c58a2 (diff) |
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 <carmelo.amoroso@st.com>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/posix_fadvise64.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |