diff options
author | taca <taca@pkgsrc.org> | 2010-03-03 02:01:40 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2010-03-03 02:01:40 +0000 |
commit | 3f8bc26cfe18dbeb3f10c47341d0a76125023053 (patch) | |
tree | 02eb26b9931081767a13d44665dd61b4c8c2bfcc /lang/php5/patches | |
parent | 6419ad10f3d4d87ef5361866c42da641656c41ab (diff) | |
download | pkgsrc-3f8bc26cfe18dbeb3f10c47341d0a76125023053.tar.gz |
Fix php-gmp build problem with gmp-5.0.1 and later refering
http://svn.php.net/viewvc?view=revision&revision=295402.
No PKGREVISION bump since it is only build problem fix.
Diffstat (limited to 'lang/php5/patches')
-rw-r--r-- | lang/php5/patches/patch-af | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/php5/patches/patch-af b/lang/php5/patches/patch-af new file mode 100644 index 00000000000..0b0d756449e --- /dev/null +++ b/lang/php5/patches/patch-af @@ -0,0 +1,20 @@ +$NetBSD: patch-af,v 1.1 2010/03/03 02:01:40 taca Exp $ + +Fix php-gmp build problem with gmp-5.0.1 and later refering +http://svn.php.net/viewvc?view=revision&revision=295402. + +--- gmp.c.orig 2010-01-03 09:23:27.000000000 +0000 ++++ gmp.c +@@ -1396,8 +1396,11 @@ ZEND_FUNCTION(gmp_random) + + GMPG(rand_initialized) = 1; + } ++#ifdef GMP_LIMB_BITS ++ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS); ++#else + mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB); +- ++#endif + ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp); + } + /* }}} */ |