summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/wrapsyscall.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 09:45:29 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-17 09:45:29 +0000
commit9584b4e582b293ead79d8bb0ff85c1ef12a888d9 (patch)
tree7eaf3bc76dd05e6d9a9c7002e7a9d5e23d5cd5fd /libpthread/linuxthreads.old/wrapsyscall.c
parentcf8c7b558c1c33cafe557ced361554461485af6c (diff)
downloaduClibc-alpine-9584b4e582b293ead79d8bb0ff85c1ef12a888d9.tar.bz2
uClibc-alpine-9584b4e582b293ead79d8bb0ff85c1ef12a888d9.tar.xz
Synch with trunk @ 24071.
Step 1 linuxthreads - linuxthreads_db - linuxthread.old - linuxthreads.old_db
Diffstat (limited to 'libpthread/linuxthreads.old/wrapsyscall.c')
-rw-r--r--libpthread/linuxthreads.old/wrapsyscall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c
index c1ddcb8fe..713e7e548 100644
--- 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))
@@ -182,7 +183,7 @@ libpthread_hidden_def(waitpid)
CANCELABLE_SYSCALL (ssize_t, write, (int fd, const void *buf, size_t n),
(fd, buf, n))
-
+#if defined __UCLIBC_HAS_SOCKET__
/* The following system calls are thread cancellation points specified
in XNS. */
@@ -224,3 +225,4 @@ CANCELABLE_SYSCALL (ssize_t, sendto, (int fd, const __ptr_t buf, size_t n,
int flags, __CONST_SOCKADDR_ARG addr,
socklen_t addr_len),
(fd, buf, n, flags, addr, addr_len))
+#endif /* __UCLIBC_HAS_SOCKET__ */