[PATCH] fixlet: #ifdef out msync() for m68k NOMMU
Denis Vlasenko
vda.linux at googlemail.com
Mon Jun 25 16:03:31 PDT 2007
Hi Mike,
include/sys/mman.h:
#ifdef __ARCH_USE_MMU__
...
#else
/* On no-mmu systems you can't have real private mappings. */
static inline int msync (void *__addr, size_t __len, int __flags) { return 0; }
#endif
but libc/sysdeps/linux/common/msync.c still tries to compile non-inline
version of msync(), and dies:
CC libc/sysdeps/linux/common/mremap.o
CC libc/sysdeps/linux/common/msync.o
libc/sysdeps/linux/common/msync.c:20: error: redefinition of 'msync'
./include/sys/mman.h:97: error: previous definition of 'msync' was here
make: *** [libc/sysdeps/linux/common/msync.o] Error 1
Something like attached patch is needed.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0929_fix.patch
Type: text/x-diff
Size: 449 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070626/bc82a39a/attachment.bin
More information about the uClibc
mailing list