ath79: bsap18x0: specify FIS directory location in dts
[openwrt/staging/ansuel.git] / package / network / utils / nftables / patches / 001-examples-compile-with-make-check.patch
1 From 18a08fb7f0443f8bde83393bd6f69e23a04246b3 Mon Sep 17 00:00:00 2001
2 From: Pablo Neira Ayuso <pablo@netfilter.org>
3 Date: Tue, 22 Feb 2022 00:56:36 +0100
4 Subject: examples: compile with `make check' and add AM_CPPFLAGS
5
6 Compile examples via `make check' like libnftnl does. Use AM_CPPFLAGS to
7 specify local headers via -I.
8
9 Unfortunately, `make distcheck' did not catch this compile time error in
10 my system, since it was using the nftables/libnftables.h file of the
11 previous nftables release.
12
13 Fixes: 5b364657a35f ("build: missing SUBIRS update")
14 Fixes: caf2a6ad2d22 ("examples: add libnftables example program")
15 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
16 ---
17 examples/Makefile.am | 4 +++-
18 1 file changed, 3 insertions(+), 1 deletion(-)
19
20 --- a/examples/Makefile.am
21 +++ b/examples/Makefile.am
22 @@ -1,4 +1,6 @@
23 -noinst_PROGRAMS = nft-buffer \
24 +check_PROGRAMS = nft-buffer \
25 nft-json-file
26
27 +AM_CPPFLAGS = -I$(top_srcdir)/include
28 +
29 LDADD = $(top_builddir)/src/libnftables.la