summaryrefslogtreecommitdiff
path: root/www/php4/patches
diff options
context:
space:
mode:
authorgrant <grant>2004-12-19 03:50:44 +0000
committergrant <grant>2004-12-19 03:50:44 +0000
commitf66dddb5c0963b4b33db6ddac3af0595da72295f (patch)
treef5771a0829971853509eecfa6db45a20da96a837 /www/php4/patches
parent3f2c825807efe6c52a90660118742e9386f7d8d6 (diff)
downloadpkgsrc-f66dddb5c0963b4b33db6ddac3af0595da72295f.tar.gz
fix an incorrect test for __ppc__, unbreaking this package on Darwin.
Diffstat (limited to 'www/php4/patches')
-rw-r--r--www/php4/patches/patch-am16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/php4/patches/patch-am b/www/php4/patches/patch-am
new file mode 100644
index 00000000000..5bdd75afa84
--- /dev/null
+++ b/www/php4/patches/patch-am
@@ -0,0 +1,16 @@
+$NetBSD: patch-am,v 1.1 2004/12/19 03:50:44 grant Exp $
+
+--- Zend/zend_strtod.c.orig 2004-12-14 19:35:26.000000000 +1100
++++ Zend/zend_strtod.c
+@@ -127,7 +127,11 @@ static char *rcsid = "$OpenBSD: strtod.c
+ #define IEEE_LITTLE_ENDIAN
+ #endif
+
++/* the __ppc__ test alone is wrong on Darwin, which doesn't have uintXX_t */
++/*
+ #if defined(__sparc__) || defined(__ppc__)
++*/
++#if defined(__sparc__) || (defined(__ppc__) && !defined(__APPLE__))
+ #define u_int32_t uint32_t
+ #endif
+