From 479be66112401ac3e9712b325ab53060ad2393b5 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 28 Apr 2005 21:21:38 +0000 Subject: update postgresql and fix gcc 3.4 build git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@748 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../postgresql/patches/100-debian-12asmconstraints | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/postgresql/patches/100-debian-12asmconstraints (limited to 'package/postgresql/patches/100-debian-12asmconstraints') diff --git a/package/postgresql/patches/100-debian-12asmconstraints b/package/postgresql/patches/100-debian-12asmconstraints new file mode 100644 index 000000000..f43eedc80 --- /dev/null +++ b/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; -- cgit v1.2.3