*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#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)
/*
* (see storage/ipc.h).
*/
-#if defined(alpha) && !defined(linuxalpha)
+#if defined(__alpha__)
void
S_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;
S_UNLOCK(lock);
}
-#endif
+#endif /* defined(__alpha__) && defined(linux) */
#if defined(linux) && defined(sparc)
# if defined(PPC)
typedef unsigned int slock_t;
-# else
- typedef unsigned char slock_t;
# endif
# if defined(PPC)
# if defined(sparc)
# undef NEED_I386_TAS_ASM
# endif
+
+
+# if defined(__alpha__)
+# undef NEED_I386_TAS_ASM
+# endif
+# if defined(__alpha__)
+ typedef long int slock_t;
+# else
+ typedef unsigned char slock_t;
+# endif