From 40fe4a9f79763bf365942fa3067d72cec9abd51d Mon Sep 17 00:00:00 2001 From: gahr Date: Mon, 27 Sep 2010 15:32:14 +0000 Subject: - Quick & dirty hack to fix build on amd64, until someone familiar with amd64 assembly fixes it. Reported by: QAT --- x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp (limited to 'x11-toolkits/fox17') 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" -- cgit