void-packages/srcpkgs/firefox/patches/musl-use-res_query.patch

17 lines
679 B
Diff
Raw Normal View History

2024-02-20 23:24:44 +01:00
--- a/netwerk/dns/PlatformDNSUnix.cpp
+++ b/netwerk/dns/PlatformDNSUnix.cpp
2024-02-21 04:40:02 +01:00
@@ -32,11 +32,11 @@
2024-02-20 23:24:44 +01:00
rv = packet.FillBuffer(
[&](unsigned char response[DNSPacket::MAX_SIZE]) -> int {
int len = 0;
-#if defined(XP_LINUX)
+#if defined(XP_LINUX) && defined(__GLIBC__)
len = res_nquery(&_res, host.get(), ns_c_in,
nsIDNSService::RESOLVE_TYPE_HTTPSSVC, response,
DNSPacket::MAX_SIZE);
2024-02-21 04:40:02 +01:00
-#elif defined(XP_MACOSX)
+#elif defined(XP_MACOSX) || defined(XP_LINUX)
len =
res_query(host.get(), ns_c_in, nsIDNSService::RESOLVE_TYPE_HTTPSSVC,
response, DNSPacket::MAX_SIZE);