summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-02-09 14:49:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-02-09 17:09:23 +0100
commit6a73ea7f34092c70de68358b6dc18b252f2062b2 (patch)
treea9711d3938ffd415c5a394d3e1819fc136f91dd8 /src/parser_bison.y
parent702cf0a7958d6456089b39bffef279d390db2e7a (diff)
src: fix build with older glibc
glibc before 2.19 missed the definition of IPPROTO_MH. This leads to build failure: parser_bison.y: In function 'nft_parse': parser_bison.y:3793:21: error: 'IPPROTO_MH' undeclared (first use in this function) | MH { $$ = IPPROTO_MH; } ^ Since we have a local definition of IPPROTO_MH in headers.h use that to fix the build. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 2e79109f..578bfdc1 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -29,6 +29,7 @@
#include <rule.h>
#include <statement.h>
#include <expression.h>
+#include <headers.h>
#include <utils.h>
#include <parser.h>
#include <erec.h>