From 67ea15a3f6f619659385447c985273ac70886a20 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 8 Nov 2004 06:04:59 +0000 Subject: Remove a redundant x86/amd64 section to fix the build on amd64. PR: 73659 Obtained from: GNOME CVS --- .../files/patch-libdb_dbinc_mutex.h | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 databases/evolution-data-server/files/patch-libdb_dbinc_mutex.h (limited to 'databases/evolution-data-server') diff --git a/databases/evolution-data-server/files/patch-libdb_dbinc_mutex.h b/databases/evolution-data-server/files/patch-libdb_dbinc_mutex.h new file mode 100644 index 000000000000..e64cc8177c6f --- /dev/null +++ b/databases/evolution-data-server/files/patch-libdb_dbinc_mutex.h @@ -0,0 +1,34 @@ +--- libdb/dbinc/mutex.h.orig Mon Nov 8 01:02:41 2004 ++++ libdb/dbinc/mutex.h Mon Nov 8 01:03:04 2004 +@@ -729,31 +729,6 @@ + #endif + + /********************************************************************* +- * amd64/gcc assembly. +- *********************************************************************/ +-#ifdef HAVE_MUTEX_X86_64_GCC_ASSEMBLY +-typedef unsigned char tsl_t; +- +-#ifdef LOAD_ACTUAL_MUTEX_CODE +-/* +- * For gcc/amd64, 0 is clear, 1 is set. +- */ +-#define MUTEX_SET(tsl) ({ \ +- register tsl_t *__l = (tsl); \ +- int __r; \ +- asm volatile("mov $1,%%rax; lock; xchgb %1,%%al; xor $1,%%rax"\ +- : "=&a" (__r), "=m" (*__l) \ +- : "1" (*__l) \ +- ); \ +- __r & 1; \ +-}) +- +-#define MUTEX_UNSET(tsl) (*(tsl) = 0) +-#define MUTEX_INIT(tsl) MUTEX_UNSET(tsl) +-#endif +-#endif +- +-/********************************************************************* + * x86_64/gcc assembly. + *********************************************************************/ + #ifdef HAVE_MUTEX_X86_64_GCC_ASSEMBLY -- cgit v1.2.3