LibC: Add in6addr_{any,loopback} definitions

This commit is contained in:
Bananymous 2025-07-28 16:11:48 +03:00
parent 31e411f8f1
commit 52309e0754
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ set(LIBC_SOURCES
malloc.cpp malloc.cpp
math.cpp math.cpp
netdb.cpp netdb.cpp
netinet/in.cpp
poll.cpp poll.cpp
printf_impl.cpp printf_impl.cpp
pthread.cpp pthread.cpp

View File

@ -0,0 +1,4 @@
#include <netinet/in.h>
const struct in6_addr in6addr_any = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
const struct in6_addr in6addr_loopback = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };