summaryrefslogtreecommitdiffstats
path: root/package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch')
-rw-r--r--package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch b/package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch
index a7fba58934..211d32d48a 100644
--- a/package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch
+++ b/package/network/utils/nftables/patches/102-build-allow-building-with-mini-gmp-instead-of-gmp.patch
@@ -52,8 +52,8 @@ Signed-off-by: Steven Barth <cyrus@openwrt.org>
+AC_MSG_ERROR([--without-libgmp MUST be used with --disable-debug])
+])
-
- AC_ARG_WITH([libreadline], [AS_HELP_STRING([--without-libreadline],
+ AC_ARG_WITH([cli], [AS_HELP_STRING([--without-cli],
+ [disable interactive CLI (libreadline support)])],
--- /dev/null
+++ b/include/bignum.h
@@ -0,0 +1,17 @@
@@ -425,7 +425,7 @@ Signed-off-by: Steven Barth <cyrus@openwrt.org>
+endif
--- a/src/datatype.c
+++ b/src/datatype.c
-@@ -252,11 +252,9 @@ static struct error_record *integer_type
+@@ -267,11 +267,9 @@ static struct error_record *integer_type
struct expr **res)
{
mpz_t v;
@@ -463,7 +463,7 @@ Signed-off-by: Steven Barth <cyrus@openwrt.org>
const char *fmt, ...)
--- a/src/evaluate.c
+++ b/src/evaluate.c
-@@ -228,9 +228,13 @@ static int expr_evaluate_value(struct ev
+@@ -232,9 +232,13 @@ static int expr_evaluate_value(struct ev
case TYPE_INTEGER:
mpz_init_bitmask(mask, ctx->ectx.len);
if (mpz_cmp((*expr)->value, mask) > 0) {
@@ -535,7 +535,7 @@ Signed-off-by: Steven Barth <cyrus@openwrt.org>
+ return -1;
+
+ len = mpz_sizeinbase(value, base);
-+ while (--prec >= len) {
++ while (prec-- > len) {
+ if (fputc('0', stdout) != '0')
+ return -1;
+