summaryrefslogtreecommitdiff
path: root/x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h')
-rw-r--r--x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h b/x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h
new file mode 100644
index 00000000000..ac204156a4e
--- /dev/null
+++ b/x11/qt5-qtwebkit/patches/patch-Source_WTF_wtf_InlineASM.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-Source_WTF_wtf_InlineASM.h,v 1.1 2014/12/30 17:23:47 adam Exp $
+
+* Add NetBSD support
+* Add Solaris/SunOS support
+
+--- Source/WTF/wtf/InlineASM.h.orig 2013-11-27 01:01:21.000000000 +0000
++++ Source/WTF/wtf/InlineASM.h
+@@ -42,7 +42,7 @@
+ #define THUMB_FUNC_PARAM(name)
+ #endif
+
+-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
++#if (OS(LINUX) || OS(FREEBSD) || OS(NETBSD) || OS(SOLARIS)) && CPU(X86_64) || (OS(SOLARIS) && CPU(X86))
+ #define GLOBAL_REFERENCE(name) #name "@plt"
+ #elif CPU(X86) && COMPILER(MINGW)
+ #define GLOBAL_REFERENCE(name) "@" #name "@4"