]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
parser_bison: include <nft.h> for base C environment to "parser_bison.y"
authorThomas Haller <thaller@redhat.com>
Fri, 8 Sep 2023 17:32:19 +0000 (19:32 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Sep 2023 21:41:38 +0000 (23:41 +0200)
All our C sources should include <nft.h> as first. This prepares an
environment of things that we expect to have available in all our C
sources (and indirectly in our internal header files, because internal
header files are always indirectly from a C source).

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y

index 4a0c09a2912aa1740560f3485b39bf3bd4cafedb..bfd53ab3b63a95c00f23a463b0f3aefe9a1ef191 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 %{
+#include <nft.h>
 
 #include <ctype.h>
 #include <stddef.h>