Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b731d04

Browse files
committed
Test for __alpha and __alpha__.
1 parent 86d34e4 commit b731d04

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/backend/main/main.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.66 2003/11/29 19:51:49 pgsql Exp $
16+
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.67 2003/12/22 23:36:38 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -23,7 +23,7 @@
2323
#include <pwd.h>
2424
#include <unistd.h>
2525

26-
#if defined(__alpha) && defined(__osf__)
26+
#if (defined(__alpha) || defined(__alpha__)) && defined(__osf__)
2727
#include <sys/sysinfo.h>
2828
#include "machine/hal_sysinfo.h"
2929
#define ASSEMBLER
@@ -63,22 +63,22 @@ main(int argc, char *argv[])
6363
* without help. Avoid adding more here, if you can.
6464
*/
6565

66-
#if defined(__alpha)
66+
#if defined(__alpha) || defined(__alpha__)
6767
#ifdef NOFIXADE
6868
int buffer[] = {SSIN_UACPROC, UAC_SIGBUS};
6969
#endif /* NOFIXADE */
7070
#ifdef NOPRINTADE
7171
int buffer[] = {SSIN_UACPROC, UAC_NOPRINT};
7272
#endif /* NOPRINTADE */
73-
#endif /* __alpha */
73+
#endif /* __alpha || __alpha__ */
7474

7575
#if defined(NOFIXADE) || defined(NOPRINTADE)
7676

7777
#if defined(ultrix4)
7878
syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL);
7979
#endif
8080

81-
#if defined(__alpha)
81+
#if defined(__alpha) || defined(__alpha__)
8282
if (setsysinfo(SSI_NVPAIRS, buffer, 1, (caddr_t) NULL,
8383
(unsigned long) NULL) < 0)
8484
fprintf(stderr, gettext("%s: setsysinfo failed: %s\n"),

src/include/storage/s_lock.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
6464
* Portions Copyright (c) 1994, Regents of the University of California
6565
*
66-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.117 2003/11/29 22:41:13 pgsql Exp $
66+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.118 2003/12/22 23:36:38 momjian Exp $
6767
*
6868
*-------------------------------------------------------------------------
6969
*/
@@ -374,7 +374,7 @@ tas(volatile slock_t *s_lock)
374374
*/
375375

376376

377-
#if defined(__alpha)
377+
#if defined(__alpha) || defined(__alpha__)
378378

379379
/*
380380
* Correct multi-processor locking methods are explained in section 5.5.3
@@ -435,7 +435,7 @@ tas(volatile slock_t *lock)
435435

436436
#endif /* defined(__GNUC__) */
437437

438-
#endif /* __alpha */
438+
#endif /* __alpha || __alpha__ */
439439

440440

441441
#if defined(__hppa)

0 commit comments

Comments
 (0)