aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2010-09-28 03:20:13 +0800
committergahr <gahr@FreeBSD.org>2010-09-28 03:20:13 +0800
commitc16e2d442ffd8c08a51e14f60ed42c29fb4720cb (patch)
tree985972e546b83801ad8e97ff33bd25a2cc828594
parent359589327b8ab719872fdc294c1fa88dc92f151b (diff)
downloadfreebsd-ports-graphics-c16e2d442ffd8c08a51e14f60ed42c29fb4720cb.tar.gz
freebsd-ports-graphics-c16e2d442ffd8c08a51e14f60ed42c29fb4720cb.tar.zst
freebsd-ports-graphics-c16e2d442ffd8c08a51e14f60ed42c29fb4720cb.zip
- Try to actually fix build on amd64
-rw-r--r--x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
index 95762a16729..c9786068585 100644
--- a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
+++ b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
@@ -1,5 +1,14 @@
---- lib/FXAtomic.cpp.orig 2010-09-27 15:06:25.000000000 +0000
-+++ lib/FXAtomic.cpp 2010-09-27 15:29:53.000000000 +0000
+--- lib/FXAtomic.cpp.orig 2010-09-18 00:09:37.000000000 +0000
++++ lib/FXAtomic.cpp 2010-09-27 18:35:26.000000000 +0000
+@@ -101,7 +101,7 @@
+ // Have API to find out which.
+
+ // If neither windows, nor inline assembly, then fallback to global mutex
+-#if !(defined(WIN32) || (defined(HAVE_INLINE_ASSEMBLY) && (defined(__i386__) || defined(__x86_64__))))
++#if !(defined(WIN32) || (defined(HAVE_INLINE_ASSEMBLY) && (defined(__i386__) || defined(__x86_64__)))) || defined(__FreeBSD__)
+ static pthread_mutex_t global_mutex=PTHREAD_MUTEX_INITIALIZER;
+ #endif
+
@@ -323,7 +323,7 @@
"movl %%esi,%%ebx\n\t" // Swap ESI back to restore EBX
"setz %0\n\t" : "=a"(ret), "=D"(ptr) : "D"(ptr), "a"(cmpa), "d"(cmpb), "S"(a), "c"(b) : "memory", "cc");