From de60cf611b1b7dcad53f21728360dff1792ab4fc Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 30 Aug 2009 11:42:28 -0700 Subject: 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 --- libc/sysdeps/linux/xtensa/Makefile.arch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/xtensa') diff --git a/libc/sysdeps/linux/xtensa/Makefile.arch b/libc/sysdeps/linux/xtensa/Makefile.arch index 3e2b1e108..bf4503138 100644 --- a/libc/sysdeps/linux/xtensa/Makefile.arch +++ b/libc/sysdeps/linux/xtensa/Makefile.arch @@ -5,8 +5,11 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -CSRC := brk.c fork.c posix_fadvise.c posix_fadvise64.c pread_write.c \ - sigaction.c __syscall_error.c +CSRC := brk.c fork.c pread_write.c sigaction.c __syscall_error.c + +ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y) + CSRC += posix_fadvise.c posix_fadvise64.c +endif SSRC := bsd-_setjmp.S bsd-setjmp.S setjmp.S clone.S \ sigrestorer.S syscall.S mmap.S windowspill.S __longjmp.S vfork.S -- cgit v1.2.3