diff options
Diffstat (limited to 'userland/libc/netdb/getaddrinfo.c')
-rw-r--r-- | userland/libc/netdb/getaddrinfo.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/userland/libc/netdb/getaddrinfo.c b/userland/libc/netdb/getaddrinfo.c index f7e89c0..f19d11a 100644 --- a/userland/libc/netdb/getaddrinfo.c +++ b/userland/libc/netdb/getaddrinfo.c @@ -1,6 +1,7 @@ #include <arpa/inet.h> #include <assert.h> #include <ctype.h> +#include <netdb.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -88,11 +89,6 @@ int connect_dns(void) { hints.ai_next = NULL; */ -#define EAI_AGAIN 1 -#define EAI_FAIL 2 -#define EAI_NONAME 3 -#define EAI_MEMORY 4 - u16 service_to_port(const char *service) { int is_number = 0; for (int i = 0; service[i]; i++) { |