diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-17 11:38:08 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-10-17 11:38:08 +0000 |
commit | ffd28375696a8322368383b4f86fa2229189e5e0 (patch) | |
tree | 5d820e4f37605195c9e013fff614586f2854e364 /libpthread | |
parent | a1de41b0b8d7d325ce607448e07b929e9acd1980 (diff) |
- guard socket calls with UCLIBC_HAS_SOCKET
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/wrapsyscall.c | 3 |
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__ */ |