OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8267f1
)
Fix up an msync() redefinition for linuxthreads + nommu systems,
author
Paul Mundt
<lethal@linux-sh.org>
Thu, 21 Aug 2008 09:01:36 +0000
(09:01 -0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 21 Aug 2008 09:01:36 +0000
(09:01 -0000)
common case depends on __ARCH_USE_MMU__, falling back on the
include/sys/mman.h:msync() stub otherwise.
libpthread/linuxthreads.old/wrapsyscall.c
patch
|
blob
|
history
diff --git
a/libpthread/linuxthreads.old/wrapsyscall.c
b/libpthread/linuxthreads.old/wrapsyscall.c
index
c1ddcb8
..
466589e
100644
(file)
--- a/
libpthread/linuxthreads.old/wrapsyscall.c
+++ b/
libpthread/linuxthreads.old/wrapsyscall.c
@@
-96,7
+96,8
@@
CANCELABLE_SYSCALL (off64_t, lseek64, (int fd, off64_t offset, int whence),
(fd, offset, whence))
#endif
-#ifdef __NR_msync
+#if defined(__NR_msync) && defined(__ARCH_USE_MMU__)
+
/* msync(2). */
CANCELABLE_SYSCALL (int, msync, (void *addr, size_t length, int flags),
(addr, length, flags))