Skip to content

Commit 3d72ca9

Browse files
authored
Use musl for in6addr* globals, to avoid static allocation in JS (#12044)
1 parent 16ba2f9 commit 3d72ca9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/library.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,15 +2343,6 @@ LibraryManager.library = {
23432343
return addr;
23442344
},
23452345

2346-
// ==========================================================================
2347-
// netinet/in.h
2348-
// ==========================================================================
2349-
2350-
in6addr_any:
2351-
'{{{ makeStaticAlloc(16) }}}',
2352-
in6addr_loopback:
2353-
'{{{ makeStaticAlloc(16) }}}',
2354-
23552346
// ==========================================================================
23562347
// netdb.h
23572348
// ==========================================================================

tools/system_libs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
LIBC_SOCKETS = ['socket.c', 'socketpair.c', 'shutdown.c', 'bind.c', 'connect.c',
2929
'listen.c', 'accept.c', 'getsockname.c', 'getpeername.c', 'send.c',
3030
'recv.c', 'sendto.c', 'recvfrom.c', 'sendmsg.c', 'recvmsg.c',
31-
'getsockopt.c', 'setsockopt.c', 'freeaddrinfo.c']
31+
'getsockopt.c', 'setsockopt.c', 'freeaddrinfo.c',
32+
'in6addr_any.c', 'in6addr_loopback.c']
3233

3334

3435
def files_in_path(path_components, filenames):

0 commit comments

Comments
 (0)