nixpkgs-suyu/pkgs/development/libraries/qt-5/5.6/qtbase/dlopen-resolv.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

2016-06-09 16:01:52 +02:00
Index: qtbase-opensource-src-5.6.0/src/network/kernel/qdnslookup_unix.cpp
2016-05-03 01:50:19 +02:00
===================================================================
2016-06-09 16:01:52 +02:00
--- 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
2016-05-03 01:50:19 +02:00
@@ -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;
}
2016-06-09 16:01:52 +02:00
Index: qtbase-opensource-src-5.6.0/src/network/kernel/qhostinfo_unix.cpp
2016-05-03 01:50:19 +02:00
===================================================================
2016-06-09 16:01:52 +02:00
--- 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
2016-05-03 01:50:19 +02:00
@@ -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;
}