1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-08 07:21:33 +03:00

Fixes for alphalinux port by abrams@philos.umass.edu

This commit is contained in:
Marc G. Fournier 1997-08-17 02:40:00 +00:00
parent 9d90de5de7
commit eaae21fb4d
3 changed files with 20 additions and 7 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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(HAS_TEST_AND_SET)
# if defined(__alpha__) && defined(linux)
extern long int tas(slock_t *lock);
# else
extern int tas(slock_t *lock); extern int tas(slock_t *lock);
#endif
#if defined (nextstep) #if defined (nextstep)
/* /*
@ -126,7 +130,7 @@ S_LOCK_FREE(slock_t *lock)
* (see storage/ipc.h). * (see storage/ipc.h).
*/ */
#if defined(alpha) && !defined(linuxalpha) #if defined(__alpha__)
void void
S_LOCK(slock_t *lock) S_LOCK(slock_t *lock)
@ -409,9 +413,9 @@ S_INIT_LOCK(slock_t *lock)
#endif /* NEED_I386_TAS_ASM */ #endif /* NEED_I386_TAS_ASM */
#if defined(linuxalpha) #if defined(__alpha__) && defined(linux)
int long int
tas(slock_t *m) tas(slock_t *m)
{ {
slock_t res; slock_t res;
@ -451,7 +455,7 @@ S_INIT_LOCK(slock_t *lock)
S_UNLOCK(lock); S_UNLOCK(lock);
} }
#endif #endif /* defined(__alpha__) && defined(linux) */
#if defined(linux) && defined(sparc) #if defined(linux) && defined(sparc)

View File

@ -12,8 +12,6 @@
# if defined(PPC) # if defined(PPC)
typedef unsigned int slock_t; typedef unsigned int slock_t;
# else
typedef unsigned char slock_t;
# endif # endif
# if defined(PPC) # if defined(PPC)
@ -24,3 +22,13 @@
# if defined(sparc) # if defined(sparc)
# undef NEED_I386_TAS_ASM # undef NEED_I386_TAS_ASM
# endif # 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

View File

@ -8,3 +8,4 @@ i386-unknown-netbsd=netbsd
mips-sgi-irix5=irix5 mips-sgi-irix5=irix5
sparc-sun-solaris2=sparc_solaris-gcc sparc-sun-solaris2=sparc_solaris-gcc
sparc-unknown-linux-gnu=linux-elf sparc-unknown-linux-gnu=linux-elf
alpha-unknown-linux-gnu=linuxalpha