diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2010-09-27 15:32:14 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2010-09-27 15:32:14 +0000 |
commit | 7ce0d19bc0aaa5e79e9916f9ad13c39fbd053c5e (patch) | |
tree | 0bac9ff48ff3a0fc4a1ba05623c6401f9e52b26c /x11-toolkits/fox17 | |
parent | ed2ca8a6990de47cee91cc0e76e5460ac288f041 (diff) | |
download | ports-7ce0d19bc0aaa5e79e9916f9ad13c39fbd053c5e.tar.gz ports-7ce0d19bc0aaa5e79e9916f9ad13c39fbd053c5e.zip |
Notes
Diffstat (limited to 'x11-toolkits/fox17')
-rw-r--r-- | x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp new file mode 100644 index 000000000000..95762a167290 --- /dev/null +++ b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp @@ -0,0 +1,11 @@ +--- lib/FXAtomic.cpp.orig 2010-09-27 15:06:25.000000000 +0000 ++++ lib/FXAtomic.cpp 2010-09-27 15:29:53.000000000 +0000 +@@ -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"); + return ret; +-#elif (defined(HAVE_INLINE_ASSEMBLY) && defined(__x86_64__)) ++#elif (defined(HAVE_INLINE_ASSEMBLY) && defined(__x86_64__)) && !defined(__FreeBSD__) + register FXbool ret; + // CMPXCHG16B: if(RDX:RAX == MEM128){ MEM128 = RCX:RBX } else { RDX:RAX = MEM128; } + __asm__ __volatile__ ("lock\n\t" |