From 6df3a1e606490c8f070949f5b3cf790f62a0742a Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Mon, 22 Apr 2013 17:23:52 +0200 Subject: QNX host lookup: do not try to load libresolv.so, it is not there Not trying to load the lib saves 30 - 50ms upon an apps' 1st host lookup. Task-number: QTBUG-30809 (cherry picked from commit b4985215df767c14ddd888cbb2919be3a7617cfd) Change-Id: If7338188c05f7fdf2ff80d06d91e7c7022e0e3d7 Reviewed-by: Thomas McGuire --- src/network/kernel/qhostinfo_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/kernel/qhostinfo_unix.cpp b/src/network/kernel/qhostinfo_unix.cpp index a507740..6b42d1e 100644 --- a/src/network/kernel/qhostinfo_unix.cpp +++ b/src/network/kernel/qhostinfo_unix.cpp @@ -94,7 +94,7 @@ static res_state_ptr local_res = 0; static void resolveLibrary() { -#ifndef QT_NO_LIBRARY +#if !defined(QT_NO_LIBRARY) && !defined(Q_OS_QNX) QLibrary lib(QLatin1String("resolv")); lib.setLoadHints(QLibrary::ImprovedSearchHeuristics); if (!lib.load()) -- cgit v0.12