diff --git a/programs/develop/libraries/menuetlibc/include/menuet/net.h b/programs/develop/libraries/menuetlibc/include/menuet/net.h index 2b69868ef2..5fb225369c 100755 --- a/programs/develop/libraries/menuetlibc/include/menuet/net.h +++ b/programs/develop/libraries/menuetlibc/include/menuet/net.h @@ -131,7 +131,7 @@ struct addrinfo { unsigned long inet_addr(char *cp); int socket(int domain, int type, int protocol); -int close_socket(int s); +int closesocket(int s); int bind(int sockfd, struct sockaddr *my_addr, int addrlen); int listen(int s, int backlog); int connect(int sockfd, const struct sockaddr *serv_addr, int addrlen); diff --git a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c index e4f814e44f..fd20fc6199 100755 --- a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c +++ b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c @@ -18,7 +18,7 @@ int socket(int domain, int type, int protocol) return __ret; } -int close_socket(int s) +int closesocket(int s) { int __ret; __asm__("int $0x40":"=a"(__ret):"a"(_SOCKETF),"b"(_CLOSESF),"c"(s));