summaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-2-RC
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-07-31 10:16:01 +0000
committermbr <mbr@FreeBSD.org>2002-07-31 10:16:01 +0000
commit9fa865ed0e6e296bbf640f7d501c06ae47780bd1 (patch)
tree4f2e87bdf1b99a15428e8ff1e469523bb5189aa6 /editors/openoffice.org-2-RC
parent44dd836d26a303cd302090f36e266b77997386f1 (diff)
downloadFreeBSD-ports-9fa865ed0e6e296bbf640f7d501c06ae47780bd1.zip
FreeBSD-ports-9fa865ed0e6e296bbf640f7d501c06ae47780bd1.tar.gz
Fix locking problems.
Submitted by: kan
Diffstat (limited to 'editors/openoffice.org-2-RC')
-rw-r--r--editors/openoffice.org-2-RC/files/patch-sal+osl+unx+interlck.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+interlck.c b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+interlck.c
new file mode 100644
index 0000000..60ea1f4
--- /dev/null
+++ b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+interlck.c
@@ -0,0 +1,30 @@
+--- ../sal/osl/unx/interlck.c.orig Mon Jul 22 17:51:34 2002
++++ ../sal/osl/unx/interlck.c Mon Jul 22 18:03:42 2002
+@@ -81,10 +81,10 @@
+ __asm__ __volatile__ (
+ "movl $1, %0\n\t"
+ "lock\n\t"
+- "xadd %0, %2\n\t"
++ "xadd %0, %1\n\t"
+ "incl %0"
+- : "=a" (nCount), "=m" (*pCount)
+- : "m" (*pCount)
++ : "=&a" (nCount), "+m" (*pCount)
++ :
+ : "memory");
+ }
+
+@@ -95,10 +95,10 @@
+ __asm__ __volatile__ (
+ "movl $-1, %0\n\t"
+ "lock\n\t"
+- "xadd %0, %2\n\t"
++ "xadd %0, %1\n\t"
+ "decl %0"
+- : "=a" (nCount), "=m" (*pCount)
+- : "m" (*pCount)
++ : "=&a" (nCount), "+m" (*pCount)
++ :
+ : "memory");
+ }
+
OpenPOWER on IntegriCloud