OSDN Git Service

Fix msync() redefinition for noMMU build
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 27 Oct 2010 20:18:23 +0000 (22:18 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 27 Oct 2010 20:20:40 +0000 (22:20 +0200)
An architecture that _may_ have a MMU (and thus implements
the msync syscall), but for which the kernel and uClibc are built as
noMMU, we have a stub for msync.

Thanks to Steven J. Magnani for noticing.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/Makefile.in

index 4222912..8a4add8 100644 (file)
@@ -49,6 +49,11 @@ CSRC := $(filter-out waitpid.c, $(CSRC))
 endif
 endif
 
+ifneq ($(ARCH_USE_MMU),y)
+# stubbed out in mman.h
+CSRC := $(filter-out msync.c, $(CSRC))
+endif
+
 ifneq ($(UCLIBC_BSD_SPECIFIC),y)
 # we need these internally: getdomainname.c
 CSRC := $(filter-out mincore.c setdomainname.c,$(CSRC))