sniper          Mon Nov 24 11:09:46 2003 EDT

  Modified files:              
    /php-src/ext/gmp    gmp.c 
  Log:
  Fix the build for other than x86 archs.
  
Index: php-src/ext/gmp/gmp.c
diff -u php-src/ext/gmp/gmp.c:1.39 php-src/ext/gmp/gmp.c:1.40
--- php-src/ext/gmp/gmp.c:1.39  Wed Nov 19 00:00:56 2003
+++ php-src/ext/gmp/gmp.c       Mon Nov 24 11:09:45 2003
@@ -32,7 +32,6 @@
 /* Needed for gmp_random() */
 #include "ext/standard/php_rand.h"
 #include "ext/standard/php_lcg.h"
-#include <gmp-mparam.h>
 #define GMP_ABS(x) ((x) >= 0 ? (x) : -(x))
 
 /* True global resources - no need for thread safety here */
@@ -1091,7 +1090,7 @@
 
                GMPG(rand_initialized) = 1;
        }
-       mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * 
BITS_PER_MP_LIMB);
+       mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * 
__GMP_BITS_PER_MP_LIMB);
 
        ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp);
 }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to