From f6c0fc19595187235c618c4877f551fe616c7113 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 20 Mar 1998 03:55:52 +0000 Subject: [PATCH] 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 --- src/backend/main/main.c | 9 ++++++++- src/template/alpha | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 8d09242bf5..91ec815d8e 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.14 1998/02/26 04:31:58 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.15 1998/03/20 03:55:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,13 @@ #include #include +#ifdef alpha +#include +#include +#define ASSEMBLER +#include +#undef ASSEMBLER +#endif #include "postgres.h" #ifdef USE_LOCALE #include diff --git a/src/template/alpha b/src/template/alpha index 3da0dfe93a..ec287496bc 100644 --- a/src/template/alpha +++ b/src/template/alpha @@ -5,7 +5,7 @@ AROPT:crs # This is defined here because a bunch of clients include tmp/c.h, # which is where the work is done on HP-UX. It only affects the # backend on Ultrix and OSF/1. -CFLAGS:-DNOFIXADE +CFLAGS:-DNOFIXADE -Dalpha SHARED_LIB: ALL: SRCH_INC: