com php-src: Fix build with gmp < 4.2: ext/gmp/gmp.c

From: Date: Thu, 13 Nov 2014 12:08:00 +0000
Subject: com php-src: Fix build with gmp < 4.2: ext/gmp/gmp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83079@lists.php.net to get a copy of this message
Commit: 1b156207446e0c5ec8a9476ad0966b5daa82f516 Author: Remi Collet <remi@php.net> Thu, 13 Nov 2014 13:08:00 +0100 Parents: 86127a077fb95b9f776ff8f59754fa69f7c91b13 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b156207446e0c5ec8a9476ad0966b5daa82f516 Log: Fix build with gmp < 4.2 See 3d6d863ccbd10d212352462b587ae1573af4f1d1 and acd7fcf55f81955e4837c750a5e45f83d3c55ba2 Changed paths: M ext/gmp/gmp.c Diff: diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index e9c1ad3..de61f1c 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -1776,7 +1776,7 @@ static void gmp_init_random(TSRMLS_D) #if GMP_42_OR_NEWER gmp_randinit_mt(GMPG(rand_state)); #else - gmp_randinit_lc_2exp(GMPG(rand_state), 32L); + gmp_randinit_lc_2exp_size(GMPG(rand_state), 32L); #endif /* Seed */ gmp_randseed_ui(GMPG(rand_state), GENERATE_SEED());

« previous php.cvs (#83079) next »