LibC: Add definition for h_errno

Nothing uses this yet, but linking will succeed
This commit is contained in:
Bananymous 2024-08-05 00:58:06 +03:00
parent 615d9d4abe
commit a749b9806e
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include <sys/un.h>
#include <unistd.h>
int h_errno = 0;
struct hostent* gethostbyname(const char* name)
{
static char name_buffer[HOST_NAME_MAX + 1];