Browse Source

- guard socket calls with UCLIBC_HAS_SOCKET

Bernhard Reutner-Fischer 15 years ago
parent
commit
ffd2837569
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libpthread/linuxthreads.old/wrapsyscall.c

+ 2 - 1
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__ */