summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hartmann <phartmann@blackberry.com>2013-04-22 15:23:52 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-24 12:01:45 (GMT)
commit6df3a1e606490c8f070949f5b3cf790f62a0742a (patch)
tree1c6555b9c1024f323d2f22d6a6b7193c4ecc6aa1
parenteb71bb131faafa57b0c7978a53b957bd08e71516 (diff)
downloadQt-6df3a1e606490c8f070949f5b3cf790f62a0742a.zip
Qt-6df3a1e606490c8f070949f5b3cf790f62a0742a.tar.gz
Qt-6df3a1e606490c8f070949f5b3cf790f62a0742a.tar.bz2
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 <thomas.mcguire@kdab.com>
-rw-r--r--src/network/kernel/qhostinfo_unix.cpp2
1 files changed, 1 insertions, 1 deletions
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())