diff options
author | gahr <gahr@FreeBSD.org> | 2010-09-27 23:32:14 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2010-09-27 23:32:14 +0800 |
commit | 40fe4a9f79763bf365942fa3067d72cec9abd51d (patch) | |
tree | 8e354674a3b7599a67fffa262c0125a1ceb5ed5a /x11-toolkits | |
parent | 955b1b3a9f2dbc360dd625ce05209edffac2eb56 (diff) | |
download | freebsd-ports-gnome-40fe4a9f79763bf365942fa3067d72cec9abd51d.tar.gz freebsd-ports-gnome-40fe4a9f79763bf365942fa3067d72cec9abd51d.tar.zst freebsd-ports-gnome-40fe4a9f79763bf365942fa3067d72cec9abd51d.zip |
- Quick & dirty hack to fix build on amd64, until someone familiar
with amd64 assembly fixes it.
Reported by: QAT
Diffstat (limited to 'x11-toolkits')
-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" |