summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2005-08-17 22:46:37 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2005-08-17 22:46:37 +0000
commita411ab089ae023acaa0881f95d03a2e05a9dc717 (patch)
tree6b2a8ef43f5157bbff53e9583592f1ea553aa01d /dev-db/postgresql/files
parentremove sysroot since it doesnt work yet (diff)
downloadhistorical-a411ab089ae023acaa0881f95d03a2e05a9dc717.tar.gz
historical-a411ab089ae023acaa0881f95d03a2e05a9dc717.tar.bz2
historical-a411ab089ae023acaa0881f95d03a2e05a9dc717.zip
Stable on sh.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'dev-db/postgresql/files')
-rw-r--r--dev-db/postgresql/files/postgresql-8.0.3-sh.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-db/postgresql/files/postgresql-8.0.3-sh.patch b/dev-db/postgresql/files/postgresql-8.0.3-sh.patch
new file mode 100644
index 000000000000..fc59d52af0e8
--- /dev/null
+++ b/dev-db/postgresql/files/postgresql-8.0.3-sh.patch
@@ -0,0 +1,34 @@
+--- src/include/storage/s_lock.h~ 2005-01-01 07:03:42.000000000 +0900
++++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900
+@@ -239,6 +239,31 @@
+ #endif /* __s390__ || __s390x__ */
+
+
++#if defined(__sh__)
++#define HAS_TEST_AND_SET
++
++typedef unsigned char slock_t;
++
++#define TAS(lock) tas(lock)
++
++static __inline__ int
++tas(volatile slock_t *lock)
++{
++ register int _res = 1;
++
++ __asm__ __volatile__(
++ "tas.b @%1\n\t"
++ "movt %0\n\t"
++ "xor #1,%0"
++: "=z"(_res)
++: "r"(lock)
++: "t","memory");
++ return _res;
++}
++
++#endif /* __sh__ */
++
++
+ #if defined(__sparc__)
+ #define HAS_TEST_AND_SET
+