summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorFathi Boudra <fabo@kde.org>2010-01-07 10:18:29 +0100
committerFathi Boudra <fabo@kde.org>2010-01-07 10:18:29 +0100
commitc9c9fb3aae6fc852e0ba44124e755d8286dcc10f (patch)
tree9ab902b48265afb664baa01decac1df5b82a81a7 /debian/patches
parent31fd99ee35c1d4cf78a2808cbbe63c573ed80441 (diff)
downloadqt4-x11-c9c9fb3aae6fc852e0ba44124e755d8286dcc10f.tar.gz
Add debian/patches/95_sparc_platform_definition.diff patch to fix build for
32-bit sparc machines.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/95_sparc_platform_definition.diff23
-rw-r--r--debian/patches/series1
2 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/95_sparc_platform_definition.diff b/debian/patches/95_sparc_platform_definition.diff
new file mode 100644
index 0000000..0c5216b
--- /dev/null
+++ b/debian/patches/95_sparc_platform_definition.diff
@@ -0,0 +1,23 @@
+Description: Build fix for 32-bit Sparc machines: these machines are big-endian.
+Origin: http://trac.webkit.org/changeset/51183/trunk/JavaScriptCore/wtf/Platform.h
+Forwarded: not-needed
+
+--- a/src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h
++++ b/src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h
+@@ -218,6 +218,16 @@
+ #define WTF_PLATFORM_BIG_ENDIAN 1
+ #endif
+
++/* PLATFORM(SPARC32) */
++#if defined(__sparc) && !defined(__arch64__) || defined(__sparcv8)
++#define WTF_PLATFORM_SPARC32 1
++#define WTF_PLATFORM_BIG_ENDIAN 1
++#endif
++
++#if PLATFORM(SPARC32) || PLATFORM(SPARC64)
++#define WTF_PLATFORM_SPARC
++#endif
++
+ /* PLATFORM(PPC64) */
+ #if defined(__ppc64__) \
+ || defined(__PPC64__)
diff --git a/debian/patches/series b/debian/patches/series
index d48feac..bc2c17f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -36,3 +36,4 @@
92_armel_gcc43_valist_compat.diff
93_jsvalue64_on_ia64.diff
94_fix_crash_in_qdbuspendingreply_qdbusreply.diff
+95_sparc_platform_definition.diff