summaryrefslogtreecommitdiffstats
path: root/databases/postgresql90-server
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2000-08-31 13:35:45 +0000
committerandreas <andreas@FreeBSD.org>2000-08-31 13:35:45 +0000
commit548af44561a05078b7b050091ebe390355a6a1a4 (patch)
tree2d6e8ca5c85dfee3c9926cd45d6091aad0fb2bea /databases/postgresql90-server
parent53054cfdff45c2781d3931872e4781f906ec581a (diff)
downloadFreeBSD-ports-548af44561a05078b7b050091ebe390355a6a1a4.zip
FreeBSD-ports-548af44561a05078b7b050091ebe390355a6a1a4.tar.gz
allow PostgreSQL to compile and run on Alpha.
The DB is 64-bit capable so really only a few bits of configuration for FreeBSD were needed. Submitted by: Thomas Valentino Crimi <tcrimi+@andrew.cmu.edu>
Diffstat (limited to 'databases/postgresql90-server')
-rw-r--r--databases/postgresql90-server/files/patch-bd42
1 files changed, 42 insertions, 0 deletions
diff --git a/databases/postgresql90-server/files/patch-bd b/databases/postgresql90-server/files/patch-bd
new file mode 100644
index 0000000..341696b
--- /dev/null
+++ b/databases/postgresql90-server/files/patch-bd
@@ -0,0 +1,42 @@
+Here are the two extra patch files that will allow PostgreSQL to
+compile and run on Alpha. The DB is 64-bit capable so really only a few
+bits of configuration for FreeBSD were needed.
+
+--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
++++ backend/main/main.c Wed Aug 30 16:06:10 2000
+@@ -14,7 +14,7 @@
+ */
+ #include <unistd.h>
+
+-#if defined(__alpha__) && !defined(linux)
++#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
+ #include <sys/sysinfo.h>
+ #include "machine/hal_sysinfo.h"
+ #define ASSEMBLER
+
+
+
+
+
+
+
+--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
++++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
+@@ -3,6 +3,12 @@
+ #if defined(__i386__)
+ #define NEED_I386_TAS_ASM
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
++#endif
++
++#if defined (__alpha__)
++#define HAS_TEST_AND_SET
++typedef long int slock_t;
+ #endif
+
+ #if defined(__sparc__)
+@@ -28,4 +34,3 @@
+ /* # undef HAS_TEST_AND_SET */
+ #endif
+
+-typedef unsigned char slock_t;
OpenPOWER on IntegriCloud