nixpkgs/pkgs/development/libraries/qt-5/5.6/qtbase/dlopen-resolv.patch
2016-06-09 18:44:56 +03:00

27 lines
1.1 KiB
Diff

Index: qtbase-opensource-src-5.6.0/src/network/kernel/qdnslookup_unix.cpp
===================================================================
--- qtbase-opensource-src-5.6.0.orig/src/network/kernel/qdnslookup_unix.cpp
+++ qtbase-opensource-src-5.6.0/src/network/kernel/qdnslookup_unix.cpp
@@ -79,7 +79,7 @@ static void resolveLibrary()
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/resolv"));
if (!lib.load())
return;
}
Index: qtbase-opensource-src-5.6.0/src/network/kernel/qhostinfo_unix.cpp
===================================================================
--- qtbase-opensource-src-5.6.0.orig/src/network/kernel/qhostinfo_unix.cpp
+++ qtbase-opensource-src-5.6.0/src/network/kernel/qhostinfo_unix.cpp
@@ -95,7 +95,7 @@ static void resolveLibrary()
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/libresolv"));
if (!lib.load())
return;
}