aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-08-17 02:40:00 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-08-17 02:40:00 +0000
commiteaae21fb4d4b8423dbd26731d9fcd3b3cecf2724 (patch)
tree77717635b8792e59b1b150428292e6152eacac8f /src/backend
parent9d90de5de70d284966826d50c14a7abe46e37820 (diff)
downloadpostgresql-eaae21fb4d4b8423dbd26731d9fcd3b3cecf2724.tar.gz
postgresql-eaae21fb4d4b8423dbd26731d9fcd3b3cecf2724.zip
Fixes for alphalinux port by abrams@philos.umass.edu
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/storage/ipc/s_lock.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/backend/storage/ipc/s_lock.c b/src/backend/storage/ipc/s_lock.c
index 476bdea6901..d33e91fc39b 100644
--- a/src/backend/storage/ipc/s_lock.c
+++ b/src/backend/storage/ipc/s_lock.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.16 1997/08/12 22:53:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.17 1997/08/17 02:39:54 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,7 +44,11 @@
#if defined(HAS_TEST_AND_SET)
+# if defined(__alpha__) && defined(linux)
+extern long int tas(slock_t *lock);
+# else
extern int tas(slock_t *lock);
+#endif
#if defined (nextstep)
/*
@@ -126,7 +130,7 @@ S_LOCK_FREE(slock_t *lock)
* (see storage/ipc.h).
*/
-#if defined(alpha) && !defined(linuxalpha)
+#if defined(__alpha__)
void
S_LOCK(slock_t *lock)
@@ -409,9 +413,9 @@ S_INIT_LOCK(slock_t *lock)
#endif /* NEED_I386_TAS_ASM */
-#if defined(linuxalpha)
+#if defined(__alpha__) && defined(linux)
-int
+long int
tas(slock_t *m)
{
slock_t res;
@@ -451,7 +455,7 @@ S_INIT_LOCK(slock_t *lock)
S_UNLOCK(lock);
}
-#endif
+#endif /* defined(__alpha__) && defined(linux) */
#if defined(linux) && defined(sparc)