aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-05-01 10:08:10 -0700
committerPetr Štetiar <ynezz@true.cz>2019-08-14 09:12:23 +0200
commit30815d65d28a5730fd3b3dbeb82c819c2ad49b3f (patch)
treef6a3af78f7cdf4938cc3df21ada3ad42cbd34d3e /package/network
parentdc2f2a16d385147abf8bc13b0b05ab0f2512b537 (diff)
downloadupstream-30815d65d28a5730fd3b3dbeb82c819c2ad49b3f.tar.gz
upstream-30815d65d28a5730fd3b3dbeb82c819c2ad49b3f.tar.bz2
upstream-30815d65d28a5730fd3b3dbeb82c819c2ad49b3f.zip
nftables: Fix compilation with uClibc-ng
Missing header for va_list. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz> [updated with upstream version of the patch] (cherry picked from commit 2f977974714468e1a0ee20e4cce233da63d06dd0)
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/nftables/Makefile2
-rw-r--r--package/network/utils/nftables/patches/010-uclibc-ng.patch28
2 files changed, 29 insertions, 1 deletions
diff --git a/package/network/utils/nftables/Makefile b/package/network/utils/nftables/Makefile
index f3bdc5caee..9f5e4d16d2 100644
--- a/package/network/utils/nftables/Makefile
+++ b/package/network/utils/nftables/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nftables
PKG_VERSION:=0.9.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
diff --git a/package/network/utils/nftables/patches/010-uclibc-ng.patch b/package/network/utils/nftables/patches/010-uclibc-ng.patch
new file mode 100644
index 0000000000..760fde5186
--- /dev/null
+++ b/package/network/utils/nftables/patches/010-uclibc-ng.patch
@@ -0,0 +1,28 @@
+From c65c4f9998587a0c705b3635215f25fa5680c0d3 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <rosenp@gmail.com>
+Date: Fri, 3 May 2019 11:49:11 -0700
+Subject: gmputil: Add missing header for va_list
+
+Otherwise it errors with unknown type name when using uClibc.
+
+Signed-off-by: Rosen Penev <rosenp@gmail.com>
+Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
+---
+ include/gmputil.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/gmputil.h b/include/gmputil.h
+index 73959c17..ad63d67b 100644
+--- a/include/gmputil.h
++++ b/include/gmputil.h
+@@ -7,6 +7,7 @@
+ #include <gmp.h>
+ #else
+ #include <mini-gmp.h>
++#include <stdarg.h>
+ #include <stdio.h>
+ /* mini-gmp doesn't come with gmp_vfprintf, so we use our own minimal variant */
+ extern int mpz_vfprintf(FILE *fp, const char *format, va_list args);
+--
+cgit v1.2.1
+