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

Commit f6c0fc1

Browse files
committed
The real trick is to add -Dalpha to the CFLAGS setting. The changes
to main.c are only to add some extra includes to support some code that's suddenly being used. The #define ASSEMBLER is to prevent most of the code of sys/proc.h from being included, as it ends up conflicting with some of the postgresql definitions. This may or may not work on other versions of Digital Unix. Get alpha working. Yea. Dwayne Bailey
1 parent d705aa8 commit f6c0fc1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/backend/main/main.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.14 1998/02/26 04:31:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.15 1998/03/20 03:55:38 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#include <stdio.h>
1515
#include <string.h>
1616
#include <unistd.h>
1717

18+
#ifdef alpha
19+
#include <sys/sysinfo.h>
20+
#include <machine/hal_sysinfo.h>
21+
#define ASSEMBLER
22+
#include <sys/proc.h>
23+
#undef ASSEMBLER
24+
#endif
1825
#include "postgres.h"
1926
#ifdef USE_LOCALE
2027
#include <locale.h>

src/template/alpha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AROPT:crs
55
# This is defined here because a bunch of clients include tmp/c.h,
66
# which is where the work is done on HP-UX. It only affects the
77
# backend on Ultrix and OSF/1.
8-
CFLAGS:-DNOFIXADE
8+
CFLAGS:-DNOFIXADE -Dalpha
99
SHARED_LIB:
1010
ALL:
1111
SRCH_INC:

0 commit comments

Comments
 (0)