summaryrefslogtreecommitdiff
path: root/databases/evolution-data-server
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-08 06:04:59 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-08 06:04:59 +0000
commit67ea15a3f6f619659385447c985273ac70886a20 (patch)
tree5c626fbe734e732fa5d262a92c8dfcc724ce7985 /databases/evolution-data-server
parent- disconenct linux-mupen64 (diff)
Remove a redundant x86/amd64 section to fix the build on amd64.
PR: 73659 Obtained from: GNOME CVS
Notes
Notes: svn path=/head/; revision=121109
Diffstat (limited to 'databases/evolution-data-server')
-rw-r--r--databases/evolution-data-server/files/patch-libdb_dbinc_mutex.h34
1 files changed, 34 insertions, 0 deletions
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