diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2018-06-26 11:38:58 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-06-26 12:38:55 +0200 |
commit | 9c871f95e258d1110afea1d0f45876f289fc03c3 (patch) | |
tree | f3c0f00db2f3f0af1814bcdd077f552f667cd480 | |
parent | e79361f9040a0a59e30aa672240ce2cf42c5ccf5 (diff) | |
download | gnutls-9c871f95e258d1110afea1d0f45876f289fc03c3.tar.gz |
lib/nettle/gost: support building with mini-nettle/mini-gmp
Do not depend directly on gmp.h.
Closes: #497
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r-- | lib/nettle/gost/bignum-le.h | 2 | ||||
-rw-r--r-- | lib/nettle/gost/gmp-glue.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/gost/bignum-le.h b/lib/nettle/gost/bignum-le.h index 9ac3da81b5..126f7fb503 100644 --- a/lib/nettle/gost/bignum-le.h +++ b/lib/nettle/gost/bignum-le.h @@ -38,7 +38,7 @@ #include <nettle/nettle-types.h> -#include <gmp.h> +#include <nettle/bignum.h> #ifdef __cplusplus extern "C" { diff --git a/lib/nettle/gost/gmp-glue.h b/lib/nettle/gost/gmp-glue.h index 21823c3e60..70201abd84 100644 --- a/lib/nettle/gost/gmp-glue.h +++ b/lib/nettle/gost/gmp-glue.h @@ -49,7 +49,7 @@ void mpn_get_base256_le (uint8_t *rp, size_t rn, const mp_limb_t *xp, mp_size_t xn); -#ifndef mpn_zero_p +#if !defined(mpn_zero_p) && !defined(__MINI_GMP_H__) static inline int mpn_zero_p (const mp_limb_t *xp, mp_size_t n) { |