From da1953bf721e8658b2b3d195ddac144ab08e9e07 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Fri, 8 Mar 2024 12:58:05 +0000 Subject: [PATCH] WASI: Enable `netdb.h` in `wasi-libc.modulemap` This header is present in WASI-libc, and its absence blocks SwiftNIO from building with WASI. --- stdlib/public/Platform/wasi-libc.modulemap | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/public/Platform/wasi-libc.modulemap b/stdlib/public/Platform/wasi-libc.modulemap index c4031b167b090..0a17fb00a58aa 100644 --- a/stdlib/public/Platform/wasi-libc.modulemap +++ b/stdlib/public/Platform/wasi-libc.modulemap @@ -41,6 +41,7 @@ module SwiftWASILibc [system] { header "langinfo.h" header "libgen.h" header "monetary.h" + header "netdb.h" header "netinet/in.h" header "netinet/tcp.h" header "nl_types.h"