summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/wrapsyscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads.old/wrapsyscall.c')
-rw-r--r--libpthread/linuxthreads.old/wrapsyscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c
index 466589ef9..713e7e548 100644
--- a/libpthread/linuxthreads.old/wrapsyscall.c
+++ b/libpthread/linuxthreads.old/wrapsyscall.c
@@ -183,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. */
@@ -225,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__ */