From a749b9806e76148e39774c9ad8a62cfca49cf018 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 5 Aug 2024 00:58:06 +0300 Subject: [PATCH] LibC: Add definition for h_errno Nothing uses this yet, but linking will succeed --- userspace/libraries/LibC/netdb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/libraries/LibC/netdb.cpp b/userspace/libraries/LibC/netdb.cpp index 7b0a9171..daa5228c 100644 --- a/userspace/libraries/LibC/netdb.cpp +++ b/userspace/libraries/LibC/netdb.cpp @@ -9,6 +9,8 @@ #include #include +int h_errno = 0; + struct hostent* gethostbyname(const char* name) { static char name_buffer[HOST_NAME_MAX + 1];