- Try to actually fix build on amd64
This commit is contained in:
parent
45002fa6ac
commit
3c854f9c62
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261969
1 changed files with 11 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue