summaryrefslogtreecommitdiffstats
path: root/package/qt5/qt5base/qt5base-0005-uclibc-no-gnu-lib-names.patch
blob: 7c667db2588fc15bf49eb95ebdcd564ef0d7fbae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[PATCH]: fix build on uClibc

Reported upstream: https://bugreports.qt-project.org/browse/QTBUG-35742

uClibc defines __GNU_LIBRARY__ like glibc, but doesn't provide
gnu/lib-names.h, so the build breaks with:

kernel/qdnslookup_unix.cpp:56:29: fatal error: gnu/lib-names.h:
No such file or directory

Fix it by explicitly checking for !uClibc.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 src/network/kernel/qdnslookup_unix.cpp |    2 +-
 src/network/kernel/qhostinfo_unix.cpp  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: qt5base-5.2.0/src/network/kernel/qdnslookup_unix.cpp
===================================================================
--- qt5base-5.2.0.orig/src/network/kernel/qdnslookup_unix.cpp
+++ qt5base-5.2.0/src/network/kernel/qdnslookup_unix.cpp
@@ -52,7 +52,7 @@
 #include <arpa/nameser_compat.h>
 #include <resolv.h>
 
-#ifdef __GNU_LIBRARY__
+#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
 #  include <gnu/lib-names.h>
 #endif
 
Index: qt5base-5.2.0/src/network/kernel/qhostinfo_unix.cpp
===================================================================
--- qt5base-5.2.0.orig/src/network/kernel/qhostinfo_unix.cpp
+++ qt5base-5.2.0/src/network/kernel/qhostinfo_unix.cpp
@@ -63,7 +63,7 @@
 #  include <resolv.h>
 #endif
 
-#ifdef __GNU_LIBRARY__
+#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
 #  include <gnu/lib-names.h>
 #endif
 
OpenPOWER on IntegriCloud