summaryrefslogtreecommitdiff
path: root/openwrt/package/postgresql/patches/100-debian-12asmconstraints
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-28 21:21:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-28 21:21:38 +0000
commit36c75c7111c3cd79d26bf570935cfd72a192dbe5 (patch)
tree0e82f6e0709c24133b1268773ebe0feec3a9fedc /openwrt/package/postgresql/patches/100-debian-12asmconstraints
parent1abfe54ddc4d7664a7e0ac70ed0ca33709f27d30 (diff)
downloadmtk-20170518-36c75c7111c3cd79d26bf570935cfd72a192dbe5.zip
mtk-20170518-36c75c7111c3cd79d26bf570935cfd72a192dbe5.tar.gz
mtk-20170518-36c75c7111c3cd79d26bf570935cfd72a192dbe5.tar.bz2
update postgresql and fix gcc 3.4 build
SVN-Revision: 748
Diffstat (limited to 'openwrt/package/postgresql/patches/100-debian-12asmconstraints')
-rw-r--r--openwrt/package/postgresql/patches/100-debian-12asmconstraints21
1 files changed, 21 insertions, 0 deletions
diff --git a/openwrt/package/postgresql/patches/100-debian-12asmconstraints b/openwrt/package/postgresql/patches/100-debian-12asmconstraints
new file mode 100644
index 0000000..f43eedc
--- /dev/null
+++ b/openwrt/package/postgresql/patches/100-debian-12asmconstraints
@@ -0,0 +1,21 @@
+diff -ruN postgresql-7.4.7-old/src/include/storage/s_lock.h postgresql-7.4.7/src/include/storage/s_lock.h
+--- postgresql-7.4.7-old/src/include/storage/s_lock.h 2004-06-15 16:09:30.000000000 +0200
++++ postgresql-7.4.7/src/include/storage/s_lock.h 2004-06-15 16:19:02.000000000 +0200
+@@ -125,7 +125,7 @@
+ __asm__ __volatile__(
+ " xchg4 %0=%1,%2 \n"
+ : "=r"(ret), "=m"(*lock)
+-: "r"(1), "1"(*lock)
++: "r"(1), "m"(*lock)
+ : "memory");
+
+ return (int) ret;
+@@ -294,7 +294,7 @@
+ " tas %1 \n"
+ " sne %0 \n"
+ : "=d"(rv), "=m"(*lock)
+-: "1"(*lock)
++: "m"(*lock)
+ : "cc");
+
+ return rv;