summaryrefslogtreecommitdiff
path: root/test/data/emacs-module/mod-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/emacs-module/mod-test.c')
-rw-r--r--test/data/emacs-module/mod-test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/data/emacs-module/mod-test.c b/test/data/emacs-module/mod-test.c
index 8ac08f71534..b7007bd80ff 100644
--- a/test/data/emacs-module/mod-test.c
+++ b/test/data/emacs-module/mod-test.c
@@ -27,11 +27,16 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <string.h>
#include <time.h>
+#ifdef HAVE_GMP
+#include <gmp.h>
+#else
+#include "mini-gmp.h"
+#define EMACS_MODULE_HAVE_MPZ_T
+#endif
+
#define EMACS_MODULE_GMP
#include <emacs-module.h>
-#include <gmp.h>
-
#include "timespec.h"
int plugin_is_GPL_compatible;