ports/math/gmp/files/patch-configure
Antoine Brodin 35564ce926 Zero memory used by mpn_lshift_com configure test, this should fix
configure when malloc debugging is turned on (default on head)

With help from:	dim@
Reported by:	pkg-fallout
2017-02-14 09:40:20 +00:00

20 lines
527 B
Text

--- configure.orig 2016-12-16 15:45:32 UTC
+++ configure
@@ -6776,7 +6776,7 @@ main ()
long i;
for (i = 0; i < 88 + 1; i++)
a[i] = ~0L;
- r = malloc (10000 * sizeof (unsigned long));
+ r = calloc (10000, sizeof(unsigned long));
r2 = r;
for (i = 0; i < 528; i += 23)
{
@@ -8394,7 +8394,7 @@ main ()
long i;
for (i = 0; i < 88 + 1; i++)
a[i] = ~0L;
- r = malloc (10000 * sizeof (unsigned long));
+ r = calloc (10000, sizeof(unsigned long));
r2 = r;
for (i = 0; i < 528; i += 23)
{