diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-08-30 11:42:28 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-09-03 10:45:46 -0700 |
commit | d990ec5891df948007d064ae972ef5f08f1b9d6f (patch) | |
tree | 97c115b3293ca7c02acacfd1f4f4626604665143 /libc/sysdeps/linux/powerpc/posix_fadvise64.c | |
parent | 4ab473edd01ed77b659e80a5add914882150316b (diff) | |
download | uClibc-alpine-d990ec5891df.tar.bz2 uClibc-alpine-d990ec5891df.tar.xz |
Build posix_fadvice{64} only when UCLIBC_HAS_ADVANCED_REALTIME is set.
Right now for ARM, MIPS, Xtensa and powerpc posix_fadvise
routines are included conditionally. They should only be
enabled when UCLIBC_HAS_ADVANCED_REALTIME is set. Also fix
code style in powerpc/posix_fadvise64.c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/powerpc/posix_fadvise64.c')
-rw-r--r-- | libc/sysdeps/linux/powerpc/posix_fadvise64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/powerpc/posix_fadvise64.c b/libc/sysdeps/linux/powerpc/posix_fadvise64.c index 159bdfad1..2c7d207c6 100644 --- a/libc/sysdeps/linux/powerpc/posix_fadvise64.c +++ b/libc/sysdeps/linux/powerpc/posix_fadvise64.c @@ -30,9 +30,8 @@ int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advise) if (len != (off_t) len) return EOVERFLOW; INTERNAL_SYSCALL_DECL (err); - int ret = INTERNAL_SYSCALL (posix_fadvise64, err, 6, fd, 0, - __LONG_LONG_PAIR ((long) (offset >> 32), - (long) offset), + int ret = INTERNAL_SYSCALL (posix_fadvise64, err, 6, fd, 0, + __LONG_LONG_PAIR ((long) (offset >> 32), (long) offset), (off_t) len, advise); if (!INTERNAL_SYSCALL_ERROR_P (ret, err)) return 0; |