summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkleink <kleink@pkgsrc.org>2000-03-05 19:12:44 +0000
committerkleink <kleink@pkgsrc.org>2000-03-05 19:12:44 +0000
commit667cc639d99d34c3fd43e60340629215faa4a026 (patch)
treeb571b4e2f7fc30ddf330b54a688d72f9c9d76403
parent934b5f0b80dcf4e19b1f0603711495c1e2655b0a (diff)
downloadpkgsrc-667cc639d99d34c3fd43e60340629215faa4a026.tar.gz
Always test for -D__architecture__ rather than -Darchitecture; newer toolchains
(i.e. ELF on former a.out ports) are namespace-clean wrt. this, and the latter predefine implies the former.
-rw-r--r--databases/postgresql/patches/patch-ao24
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/postgresql/patches/patch-ao b/databases/postgresql/patches/patch-ao
new file mode 100644
index 00000000000..f561b80a4a7
--- /dev/null
+++ b/databases/postgresql/patches/patch-ao
@@ -0,0 +1,24 @@
+$NetBSD: patch-ao,v 1.1 2000/03/05 19:12:44 kleink Exp $
+
+--- include/port/bsd.h.orig Tue May 25 18:14:29 1999
++++ include/port/bsd.h Sun Mar 5 16:54:42 2000
+@@ -1,16 +1,16 @@
+ #define USE_POSIX_TIME
+
+-#if defined(i386)
++#if defined(__i386__)
+ #define NEED_I386_TAS_ASM
+ #define HAS_TEST_AND_SET
+ #endif
+
+-#if defined(sparc)
++#if defined(__sparc__)
+ #define NEED_SPARC_TAS_ASM
+ #define HAS_TEST_AND_SET
+ #endif
+
+-#if defined(vax)
++#if defined(__vax__)
+ #define NEED_VAX_TAS_ASM
+ #define HAS_TEST_AND_SET
+ #endif