nftables: Fix compilation with uClibc-ng
[oweals/openwrt.git] / package / network / utils / nftables / patches / 010-uclibc-ng.patch
1 From c65c4f9998587a0c705b3635215f25fa5680c0d3 Mon Sep 17 00:00:00 2001
2 From: Rosen Penev <rosenp@gmail.com>
3 Date: Fri, 3 May 2019 11:49:11 -0700
4 Subject: gmputil: Add missing header for va_list
5
6 Otherwise it errors with unknown type name when using uClibc.
7
8 Signed-off-by: Rosen Penev <rosenp@gmail.com>
9 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
10 ---
11  include/gmputil.h | 1 +
12  1 file changed, 1 insertion(+)
13
14 diff --git a/include/gmputil.h b/include/gmputil.h
15 index 73959c17..ad63d67b 100644
16 --- a/include/gmputil.h
17 +++ b/include/gmputil.h
18 @@ -7,6 +7,7 @@
19  #include <gmp.h>
20  #else
21  #include <mini-gmp.h>
22 +#include <stdarg.h>
23  #include <stdio.h>
24  /* mini-gmp doesn't come with gmp_vfprintf, so we use our own minimal variant */
25  extern int mpz_vfprintf(FILE *fp, const char *format, va_list args);
26 -- 
27 cgit v1.2.1
28