summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-08-30 11:42:28 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-03 10:45:46 -0700
commitd990ec5891df948007d064ae972ef5f08f1b9d6f (patch)
tree97c115b3293ca7c02acacfd1f4f4626604665143 /libc/sysdeps/linux/mips
parent4ab473edd01ed77b659e80a5add914882150316b (diff)
downloaduClibc-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/mips')
-rw-r--r--libc/sysdeps/linux/mips/Makefile.arch6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/mips/Makefile.arch b/libc/sysdeps/linux/mips/Makefile.arch
index cb0f52403..73e64991c 100644
--- a/libc/sysdeps/linux/mips/Makefile.arch
+++ b/libc/sysdeps/linux/mips/Makefile.arch
@@ -8,7 +8,11 @@
CSRC := \
__longjmp.c brk.c setjmp_aux.c mmap.c __syscall_error.c \
cacheflush.c pread_write.c sysmips.c _test_and_set.c \
- readahead.c posix_fadvise.c posix_fadvise64.c
+ readahead.c
+
+ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y)
+CSRC += posix_fadvise.c posix_fadvise64.c
+endif
ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
CSRC += sigaction.c