diff --git a/programs/develop/libraries/menuetlibc/include/menuet/net.h b/programs/develop/libraries/menuetlibc/include/menuet/net.h index 33c916224d..781d4c1f6c 100755 --- a/programs/develop/libraries/menuetlibc/include/menuet/net.h +++ b/programs/develop/libraries/menuetlibc/include/menuet/net.h @@ -43,7 +43,7 @@ extern "C" { #define PF_UNSPEC AF_UNSPEC #define PF_LOCAL AF_LOCAL -#define PF_INET4 AF_INET4 +#define PF_INET AF_INET #define PF_INET6 AF_INET6 // Flags for addrinfo diff --git a/programs/develop/libraries/menuetlibc/src/libc/menuetos/network.c b/programs/develop/libraries/menuetlibc/src/libc/menuetos/network.c index d9f0bd8b85..826aa910c5 100644 --- a/programs/develop/libraries/menuetlibc/src/libc/menuetos/network.c +++ b/programs/develop/libraries/menuetlibc/src/libc/menuetos/network.c @@ -1,4 +1,5 @@ #include +#include #define NULL 0 @@ -13,7 +14,6 @@ int kol_exit(){ __menuet__sys_exit(); } - int (* __stdcall network_init)(); void (* __stdcall freeaddrinfo)(struct addrinfo* ai); int (* __stdcall getaddrinfo)( const char* hostname, const char* servname, const struct addrinfo* hints, struct addrinfo **res);