summaryrefslogtreecommitdiff
path: root/www/php4
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
parent3f2c825807efe6c52a90660118742e9386f7d8d6 (diff)
downloadpkgsrc-f66dddb5c0963b4b33db6ddac3af0595da72295f.tar.gz
fix an incorrect test for __ppc__, unbreaking this package on Darwin.
Diffstat (limited to 'www/php4')
-rw-r--r--www/php4/distinfo3
-rw-r--r--www/php4/patches/patch-am16
2 files changed, 18 insertions, 1 deletions
diff --git a/www/php4/distinfo b/www/php4/distinfo
index 8699b036de1..80a11b35062 100644
--- a/www/php4/distinfo
+++ b/www/php4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2004/12/17 00:36:09 tron Exp $
+$NetBSD: distinfo,v 1.37 2004/12/19 03:50:44 grant Exp $
SHA1 (php-4.3.10.tar.bz2) = 3cef4d103f395eb25fa44fcdc8c692c1cf0a2ac0
Size (php-4.3.10.tar.bz2) = 4026148 bytes
@@ -11,3 +11,4 @@ SHA1 (patch-ai) = 0b9c1c9fb75a64026f2fb3cbd44cc19e0a1f186c
SHA1 (patch-aj) = 132b5b5b802f1795deda9487db5f22cfe9edce5d
SHA1 (patch-ak) = bd2aac1a91ed77208b45747c9d11e87731c6b46f
SHA1 (patch-al) = 28ad9006b387e2b9984ad49beea21c9d46e63b46
+SHA1 (patch-am) = 1b6dc859a71b04682bf290fc747c8fdb1c3864fb
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
+