]> granicus.if.org Git - postgresql/commitdiff
The real trick is to add -Dalpha to the CFLAGS setting. The changes
authorBruce Momjian <bruce@momjian.us>
Fri, 20 Mar 1998 03:55:52 +0000 (03:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 20 Mar 1998 03:55:52 +0000 (03:55 +0000)
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
src/template/alpha

index 8d09242bf54481c4ce5a3e70e8fb60ceda3c26f6..91ec815d8e01da7f5c1bc545a79ae1c48567c386 100644 (file)
@@ -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 $
  *
  *-------------------------------------------------------------------------
  */
 #include <string.h>
 #include <unistd.h>
 
+#ifdef alpha
+#include <sys/sysinfo.h>
+#include <machine/hal_sysinfo.h>
+#define ASSEMBLER
+#include <sys/proc.h>
+#undef ASSEMBLER
+#endif
 #include "postgres.h"
 #ifdef USE_LOCALE
 #include <locale.h>
index 3da0dfe93a6ad0b39671565901f1be9bf8ea35a3..ec287496bc87387e2d43a38e74a48e2e4e5588a3 100644 (file)
@@ -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: