From 9501c3f45b9b5d3b2cef5e78c83c362dbe6295a5 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 16 Dec 2024 20:26:20 +0100 Subject: libc: Add gai_strerror --- userland/libc/netdb/getaddrinfo.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'userland/libc/netdb/getaddrinfo.c') 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 #include #include +#include #include #include #include @@ -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++) { -- cgit v1.2.3