summaryrefslogtreecommitdiff
path: root/graphics/copperspice/files/patch-df-support
blob: b65c43787f4cff328a8de3c7a0ae2cbd5d1911fa (plain) (blame)
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
--- src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -405,7 +405,7 @@
 #endif
 
 /* OS(FREEBSD) - FreeBSD */
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined (__DragonFly__)
 #define WTF_OS_FREEBSD 1
 #endif
 
--- src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp
+++ src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp
@@ -3781,6 +3781,8 @@ QString QWebPage::userAgentForUrl(const QUrl&) const
 
 #elif defined Q_OS_BSD4
         firstPartTemp += QString::fromLatin1("BSD Four");
+#elif defined Q_OS_DRAGONFLY
+        firstPartTemp += QString::fromLatin1("DragonFly");
 #elif defined Q_OS_FREEBSD
         firstPartTemp += QString::fromLatin1("FreeBSD");
 #elif defined Q_OS_HPUX
--- src/core/global/qglobal.h
+++ src/core/global/qglobal.h
@@ -178,6 +178,10 @@ QT_USE_NAMESPACE
 #elif defined(__linux__) || defined(__linux)
 #  define Q_OS_LINUX
 
+#elif defined(__DragonFly__)
+#  define Q_OS_DRAGONFLY
+#  define Q_OS_BSD4
+
 #elif defined(__FreeBSD__)
 #  define Q_OS_FREEBSD
 #  define Q_OS_BSD4
@@ -1665,7 +1669,7 @@ Q_CORE_EXPORT int qrand();
 
 
 #if defined (__ELF__)
-#  if defined (Q_OS_LINUX) || defined (Q_OS_SOLARIS) || defined (Q_OS_FREEBSD) || defined (Q_OS_OPENBSD)
+#  if defined (Q_OS_LINUX) || defined (Q_OS_SOLARIS) || defined (Q_OS_FREEBSD) || defined (Q_OS_OPENBSD) || defined (Q_OS_DRAGONFLY)
 #    define Q_OF_ELF
 #  endif
 #endif
--- src/core/global/qplatformdefs.h
+++ src/core/global/qplatformdefs.h
@@ -280,7 +280,7 @@ typedef enum {
 
 
 // ***********
-#elif defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
+#elif defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_DRAGONFLY)
 
 #include <qplatformposix.h>