]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/include/sys/socket.h
Remove socket.c, which was a stub that always failed with ENOSYS.
[wasi-libc.git] / libc-top-half / musl / include / sys / socket.h
index 0e17f4da058aecaee4e4f7c247f09d487d72a547..2cdb10b567851cdf0cbe25091c5287d05bbd368c 100644 (file)
@@ -335,15 +335,15 @@ struct sockaddr_storage {
 #include <__struct_sockaddr_storage.h>
 #endif
 
+#ifdef __wasilibc_unmodified_upstream /* WASI has no socket/socketpair */
 int socket (int, int, int);
-#ifdef __wasilibc_unmodified_upstream /* WASI has no socketpair */
 int socketpair (int, int, int, int [2]);
 #endif
 
 int shutdown (int, int);
 
+#ifdef __wasilibc_unmodified_upstream /* WASI has no bind/connect/listen/accept */
 int bind (int, const struct sockaddr *, socklen_t);
-#ifdef __wasilibc_unmodified_upstream /* WASI has no connect/listen/accept */
 int connect (int, const struct sockaddr *, socklen_t);
 int listen (int, int);
 int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);