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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
author: Petr Salinger <Petr.Salinger@seznam.cz>
Fixes FTBFS on GNU/kFreeBSD by creating new Q_OS_GLIBC.
--- qt4-x11-4.3.2.orig/src/corelib/global/qglobal.h
+++ qt4-x11-4.3.2/src/corelib/global/qglobal.h
@@ -125,6 +125,12 @@
# define Q_OS_RELIANT
#elif defined(__linux__) || defined(__linux)
# define Q_OS_LINUX
+# define Q_OS_GLIBC
+#elif defined(__GNU_HURD__) || defined(__GNU__)
+# define Q_OS_HURD
+# define Q_OS_GLIBC
+#elif defined(__GLIBC__)
+# define Q_OS_GLIBC
#elif defined(__FreeBSD__) || defined(__DragonFly__)
# define Q_OS_FREEBSD
# define Q_OS_BSD4
@@ -145,8 +151,6 @@
# define Q_OS_AIX
#elif defined(__Lynx__)
# define Q_OS_LYNX
-#elif defined(__GNU__)
-# define Q_OS_HURD
#elif defined(__DGUX__)
# define Q_OS_DGUX
#elif defined(__QNXNTO__)
--- qt4-x11-4.3.2.orig/src/corelib/plugin/qlibrary.cpp
+++ qt4-x11-4.3.2/src/corelib/plugin/qlibrary.cpp
@@ -293,11 +293,11 @@
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
-#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX)
+#if defined(Q_OS_FREEBSD) || defined(Q_OS_GLIBC)
# define USE_MMAP
# include <sys/types.h>
# include <sys/mman.h>
-#endif // Q_OS_FREEBSD || Q_OS_LINUX
+#endif // Q_OS_FREEBSD || Q_OS_GLIBC
static long qt_find_pattern(const char *s, ulong s_len,
const char *pattern, ulong p_len)
--- qt4-x11-4.3.2.orig/src/corelib/tools/qlocale.cpp
+++ qt4-x11-4.3.2/src/corelib/tools/qlocale.cpp
@@ -63,7 +63,7 @@
#include <qdebug.h>
#include <time.h>
-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
# include <fenv.h>
#endif
@@ -5930,7 +5930,7 @@
_control87(MCW_EM, MCW_EM);
#endif
-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
fenv_t envp;
feholdexcept(&envp);
#endif
@@ -5946,7 +5946,7 @@
#endif //_M_X64
#endif //Q_OS_WIN
-#if defined(Q_OS_LINUX) && !defined(__UCLIBC__)
+#if defined(Q_OS_GLIBC) && !defined(__UCLIBC__)
fesetenv(&envp);
#endif
|