From e0e95d921c3fbcc6bf7abb4192c51defaeca857f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 30 Apr 1997 17:03:43 -0700
Subject: [PATCH] should now compile even without libgmp

Rev: src/modules/Gmp/next_prime.c:1.2
---
 src/modules/Gmp/next_prime.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/modules/Gmp/next_prime.c b/src/modules/Gmp/next_prime.c
index 097a9bdd67..660fbc76e8 100644
--- a/src/modules/Gmp/next_prime.c
+++ b/src/modules/Gmp/next_prime.c
@@ -7,6 +7,15 @@
  * with Gmp-2.1 .
  */
 
+#include "gmp_machine.h"
+
+#if !defined(HAVE_LIBGMP)
+#undef HAVE_GMP_H
+#endif
+
+
+#ifdef HAVE_GMP_H
+
 #include <limits.h>
 #include <gmp.h>
 
@@ -195,3 +204,5 @@ mpz_next_prime(mpz_t p, mpz_t n, int count, int prime_limit)
     }
   mpz_clear(tmp);
 }
+
+#endif
-- 
GitLab