diff --git a/math/gmp/files/patch-configure b/math/gmp/files/patch-configure new file mode 100644 index 000000000000..3cc6d158d28a --- /dev/null +++ b/math/gmp/files/patch-configure @@ -0,0 +1,20 @@ +--- 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) + {