Test for __alpha and __alpha__.
This commit is contained in:
parent
86d34e4123
commit
b731d04101
@ -13,7 +13,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.66 2003/11/29 19:51:49 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.67 2003/12/22 23:36:38 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -23,7 +23,7 @@
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__alpha) && defined(__osf__)
|
||||
#if (defined(__alpha) || defined(__alpha__)) && defined(__osf__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
@ -63,14 +63,14 @@ main(int argc, char *argv[])
|
||||
* without help. Avoid adding more here, if you can.
|
||||
*/
|
||||
|
||||
#if defined(__alpha)
|
||||
#if defined(__alpha) || defined(__alpha__)
|
||||
#ifdef NOFIXADE
|
||||
int buffer[] = {SSIN_UACPROC, UAC_SIGBUS};
|
||||
#endif /* NOFIXADE */
|
||||
#ifdef NOPRINTADE
|
||||
int buffer[] = {SSIN_UACPROC, UAC_NOPRINT};
|
||||
#endif /* NOPRINTADE */
|
||||
#endif /* __alpha */
|
||||
#endif /* __alpha || __alpha__ */
|
||||
|
||||
#if defined(NOFIXADE) || defined(NOPRINTADE)
|
||||
|
||||
@ -78,7 +78,7 @@ main(int argc, char *argv[])
|
||||
syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL);
|
||||
#endif
|
||||
|
||||
#if defined(__alpha)
|
||||
#if defined(__alpha) || defined(__alpha__)
|
||||
if (setsysinfo(SSI_NVPAIRS, buffer, 1, (caddr_t) NULL,
|
||||
(unsigned long) NULL) < 0)
|
||||
fprintf(stderr, gettext("%s: setsysinfo failed: %s\n"),
|
||||
|
@ -63,7 +63,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.117 2003/11/29 22:41:13 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.118 2003/12/22 23:36:38 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -374,7 +374,7 @@ tas(volatile slock_t *s_lock)
|
||||
*/
|
||||
|
||||
|
||||
#if defined(__alpha)
|
||||
#if defined(__alpha) || defined(__alpha__)
|
||||
|
||||
/*
|
||||
* Correct multi-processor locking methods are explained in section 5.5.3
|
||||
@ -435,7 +435,7 @@ tas(volatile slock_t *lock)
|
||||
|
||||
#endif /* defined(__GNUC__) */
|
||||
|
||||
#endif /* __alpha */
|
||||
#endif /* __alpha || __alpha__ */
|
||||
|
||||
|
||||
#if defined(__hppa)
|
||||
|
Loading…
x
Reference in New Issue
Block a user