summaryrefslogtreecommitdiff
path: root/databases/postgresql
diff options
context:
space:
mode:
authorjlam <jlam>2000-07-14 04:44:53 +0000
committerjlam <jlam>2000-07-14 04:44:53 +0000
commit4ed5861b328ac7a76b8654c4f657154adc8c7ac7 (patch)
treee874fbb3258e61acdaaeaff7f3f81c64251a9008 /databases/postgresql
parentc6d82f101f6c4b774e1c499eb46070e0a024fa33 (diff)
downloadpkgsrc-4ed5861b328ac7a76b8654c4f657154adc8c7ac7.tar.gz
Forgot these patches
Diffstat (limited to 'databases/postgresql')
-rw-r--r--databases/postgresql/patches/patch-ah20
-rw-r--r--databases/postgresql/patches/patch-ai58
-rw-r--r--databases/postgresql/patches/patch-aj22
3 files changed, 100 insertions, 0 deletions
diff --git a/databases/postgresql/patches/patch-ah b/databases/postgresql/patches/patch-ah
new file mode 100644
index 00000000000..8114e9c0081
--- /dev/null
+++ b/databases/postgresql/patches/patch-ah
@@ -0,0 +1,20 @@
+$NetBSD: patch-ah,v 1.7 2000/07/14 04:44:53 jlam Exp $
+
+--- backend/main/main.c.orig Wed Jan 26 00:56:30 2000
++++ backend/main/main.c Wed Jul 12 02:34:38 2000
+@@ -14,13 +14,14 @@
+ */
+ #include <unistd.h>
+
+-#if defined(__alpha__) && !defined(linux)
++#if defined(__alpha__) && !defined(linux) && !defined(__NetBSD__)
+ #include <sys/sysinfo.h>
+ #include "machine/hal_sysinfo.h"
+ #define ASSEMBLER
+ #include <sys/proc.h>
+ #undef ASSEMBLER
+ #endif
++#include <sys/param.h>
+
+ #include "postgres.h"
+ #ifdef USE_LOCALE
diff --git a/databases/postgresql/patches/patch-ai b/databases/postgresql/patches/patch-ai
new file mode 100644
index 00000000000..0e5055d4f85
--- /dev/null
+++ b/databases/postgresql/patches/patch-ai
@@ -0,0 +1,58 @@
+$NetBSD: patch-ai,v 1.7 2000/07/14 04:44:53 jlam Exp $
+
+--- include/port/netbsd.h.orig Wed Apr 12 13:16:48 2000
++++ include/port/netbsd.h Wed Jul 12 02:31:08 2000
+@@ -3,43 +3,48 @@
+ #if defined(__i386__)
+ #define NEED_I386_TAS_ASM
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__sparc__)
+ #define NEED_SPARC_TAS_ASM
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__vax__)
+ #define NEED_VAX_TAS_ASM
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__ns32k__)
+ #define NEED_NS32K_TAS_ASM
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__m68k__)
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__arm__)
+ #define HAS_TEST_AND_SET
++typedef unsigned char slock_t;
+ #endif
+
+ #if defined(__mips__)
+ /* # undef HAS_TEST_AND_SET */
++typedef unsigned char slock_t;
+ #endif
+
+-#if defined(__powerpc__)
++#if defined(__alpha__)
+ #define HAS_TEST_AND_SET
++typedef unsigned long slock_t;
+ #endif
+
+ #if defined(__powerpc__)
++#define HAS_TEST_AND_SET
+ typedef unsigned int slock_t;
+-
+-#else
+-typedef unsigned char slock_t;
+-
+ #endif
diff --git a/databases/postgresql/patches/patch-aj b/databases/postgresql/patches/patch-aj
new file mode 100644
index 00000000000..9029a5fdeab
--- /dev/null
+++ b/databases/postgresql/patches/patch-aj
@@ -0,0 +1,22 @@
+$NetBSD: patch-aj,v 1.7 2000/07/14 04:44:54 jlam Exp $
+
+--- include/storage/s_lock.h.orig Wed Apr 12 13:16:51 2000
++++ include/storage/s_lock.h Wed Jul 12 02:40:53 2000
+@@ -262,7 +262,17 @@
+ #define TAS(lock) tas(lock)
+ #define S_UNLOCK(lock) do { __asm__("mb"); *(lock) = 0; } while (0)
+
++#if defined(__GNUC__)
++/*
++ * GCC on the Alpha doesn't appear to handle inlining of assembly with
++ * %0 or %1 properly. This removes the inlining of the tas (test-and-set)
++ * function, which probably slows things down considerably, but correctness
++ * first!
++ */
++static int
++#else
+ static __inline__ int
++#endif
+ tas(volatile slock_t *lock)
+ {
+ register slock_t _res;