about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-15 17:48:49 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-15 17:48:49 +0100
commit42441c99cc4ef1e262a0f50e39c4056cc173c1e9 (patch)
treee8b851172620cf0bfa4ba8bb31c55c11db2fb6c1 /src/libtools
parentf7754740625b6f1749ee77e09f05956aa146f30b (diff)
downloadbox64-42441c99cc4ef1e262a0f50e39c4056cc173c1e9.tar.gz
box64-42441c99cc4ef1e262a0f50e39c4056cc173c1e9.zip
[BOX32][WRAPPER] More fixes on 32bits libc wrapping
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/libc_net32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libtools/libc_net32.c b/src/libtools/libc_net32.c
index 55681a5f..9bb4118f 100644
--- a/src/libtools/libc_net32.c
+++ b/src/libtools/libc_net32.c
@@ -21,6 +21,7 @@
 #include <ifaddrs.h>
 #include <net/if.h>
 #include <resolv.h>
+#include <netinet/in.h>
 
 #include "box64stack.h"
 #include "x64emu.h"
@@ -633,3 +634,12 @@ EXPORT int my32_ns_parserr(x64emu_t* emu, my_ns_msg_32_t* handle, uint32_t secti
     convert_ns_msg_to_32(handle, &handle_l);
     return ret;
 }
+
+EXPORT struct in6_addr my32_in6addr_any;
+EXPORT struct in6_addr my32_in6addr_loopback;
+
+void libc32_net_init()
+{
+    my32_in6addr_any = in6addr_any;
+    my32_in6addr_loopback = in6addr_loopback;
+}
\ No newline at end of file