summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 21:24:15 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 21:24:15 +0000
commit1139d948d552743b75a1b32a70ce7dbd488bc8a3 (patch)
treea0801e4271370823753e92895a0fb715fde95694 /libpthread/linuxthreads.old
parentffd98ffec71ec6c7b7e7a96f5e6dce40077b3785 (diff)
only define msync cancellation point if the syscall exists
Diffstat (limited to 'libpthread/linuxthreads.old')
-rw-r--r--libpthread/linuxthreads.old/wrapsyscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c
index 369c190d5..684989be0 100644
--- a/libpthread/linuxthreads.old/wrapsyscall.c
+++ b/libpthread/linuxthreads.old/wrapsyscall.c
@@ -96,9 +96,11 @@ CANCELABLE_SYSCALL (off64_t, lseek64, (int fd, off64_t offset, int whence),
(fd, offset, whence))
#endif
+#ifdef __NR_msync
/* msync(2). */
CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags),
(addr, length, flags))
+#endif
/* nanosleep(2). */