pkgsrc/x11/qt3-libs/patches/patch-bd
markd 0bb87f5042 Use modern resolver api on recent NetBSD systems that have it.
From Love in PR 26638.
Fixes problems in threaded programs. eg psi and kde3.3's cups support.
2004-08-24 12:38:18 +00:00

13 lines
393 B
Text

$NetBSD: patch-bd,v 1.3 2004/08/24 12:38:18 markd Exp $
--- src/network/qdns.cpp.orig 2004-08-24 23:37:54.000000000 +1200
+++ src/network/qdns.cpp
@@ -2515,6 +2515,8 @@ void QDns::doSynchronousLookup()
#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3)))
#define Q_MODERN_RES_API
+#elif defined(res_ninit)
+#define Q_MODERN_RES_API
#else
#endif