]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Fix mini-gmp build
authorNiels Möller <nisse@lysator.liu.se>
Sat, 15 Oct 2022 14:11:08 +0000 (16:11 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 28 Nov 2022 18:30:07 +0000 (19:30 +0100)
ecc-mod-inv.c
version.h.in

index 68d6c33998d976fba803f1c2c2676163197b0840..d3294485341553091ff42103fdde4db2983dcce9 100644 (file)
@@ -34,6 +34,7 @@
 #endif
 
 #include <assert.h>
+#include <limits.h>
 
 #include "ecc-internal.h"
 
index cf429f25e8e4553025d1fc61936f8a8fb9fa6d46..a675be376e5a9050237a81a655359d365c83a891 100644 (file)
@@ -49,6 +49,7 @@ extern "C" {
    sizeof(mp_limb_t) * CHAR_BIT is not good enough. */
 #if NETTLE_USE_MINI_GMP
 # define GMP_NUMB_BITS @GMP_NUMB_BITS@
+# define GMP_LIMB_BITS GMP_NUMB_BITS
 #endif
 
 int