binutils/oprofile: disable mips16 to fix build errors (#19522)
[openwrt.git] / package / libs / nettle / patches / 0005-allow-der-iterator-to-be-used-with-mini-gmp.patch
1 From d71b3138cbdc3852c96a2639995f2d7f44b1c76c Mon Sep 17 00:00:00 2001
2 From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
3 Date: Sat, 29 Mar 2014 09:12:41 +0100
4 Subject: [PATCH 5/5] allow der-iterator to be used with mini-gmp
5
6 ---
7  der-iterator.c | 4 ++--
8  1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/der-iterator.c b/der-iterator.c
11 index 2e6efd5..5ab15b9 100644
12 --- a/der-iterator.c
13 +++ b/der-iterator.c
14 @@ -30,7 +30,7 @@
15  #include <assert.h>
16  #include <stdlib.h>
17  
18 -#if HAVE_LIBGMP
19 +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
20  #include "bignum.h"
21  #endif
22  
23 @@ -246,7 +246,7 @@ asn1_der_get_uint32(struct asn1_der_iterator *i,
24    return 1;
25  }
26  
27 -#if HAVE_LIBGMP
28 +#if defined(HAVE_LIBGMP) || defined(USE_MINI_GMP)
29  int
30  asn1_der_get_bignum(struct asn1_der_iterator *i,
31                     mpz_t x, unsigned max_bits)
32 -- 
33 1.9.2
34