1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/development/libraries/qt-5/5.6/qtbase/dlopen-resolv.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

Index: qtbase-opensource-src-5.6.1/src/network/kernel/qdnslookup_unix.cpp
2016-05-03 00:50:19 +01:00
===================================================================
--- qtbase-opensource-src-5.6.1.orig/src/network/kernel/qdnslookup_unix.cpp
+++ qtbase-opensource-src-5.6.1/src/network/kernel/qdnslookup_unix.cpp
@@ -78,7 +78,7 @@ static bool resolveLibraryInternal()
2016-05-03 00:50:19 +01:00
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/resolv"));
if (!lib.load())
return false;
2016-05-03 00:50:19 +01:00
}
Index: qtbase-opensource-src-5.6.1/src/network/kernel/qhostinfo_unix.cpp
2016-05-03 00:50:19 +01:00
===================================================================
--- qtbase-opensource-src-5.6.1.orig/src/network/kernel/qhostinfo_unix.cpp
+++ qtbase-opensource-src-5.6.1/src/network/kernel/qhostinfo_unix.cpp
@@ -94,7 +94,7 @@ static bool resolveLibraryInternal()
2016-05-03 00:50:19 +01:00
if (!lib.load())
#endif
{
- lib.setFileName(QLatin1String("resolv"));
+ lib.setFileName(QLatin1String("@glibc@/lib/libresolv"));
if (!lib.load())
return false;
2016-05-03 00:50:19 +01:00
}