head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.16 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.14 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.12 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.10 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.8 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.6 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.4 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.2 pkgsrc-2024Q2-base:1.1; locks; strict; comment @// @; 1.1 date 2024.05.13.19.39.45; author he; state Exp; branches; next ; commitid EPTS0kn5lh0TgS9F; desc @@ 1.1 log @x11/qt6-qtbase: add conditional to avoid res_init() and _res usage on NetBSD. This should make this work in threaded programs. Ref. PR#58249. @ text @$NetBSD$ On NetBSD, res_init() is not thread-safe and NetBSD's resolver code does "auto-refresh". Ref. PR%58249. --- src/network/kernel/qhostinfo_unix.cpp.orig 2024-05-13 18:52:13.740627531 +0000 +++ src/network/kernel/qhostinfo_unix.cpp @@@@ -47,6 +47,10 @@@@ static void maybeRefreshResolver() // res_init() is not thread-safe; executing it leads to state corruption. // Whether it reloads resolv.conf on its own is unknown. return; +#elif defined(Q_OS_NETBSD) + // res_init() is not thread-safe, and NetBSD's resolver code + // automatically refreshes on resolv.conf modification. + return; #endif #if QT_CONFIG(libresolv) @