]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: fix build with older glibc
authorBaruch Siach <baruch@tkos.co.il>
Fri, 9 Feb 2018 12:49:50 +0000 (14:49 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 9 Feb 2018 16:09:23 +0000 (17:09 +0100)
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>
src/parser_bison.y

index 2e79109f4da3ca9e57867a81d946b019a0bae9eb..578bfdc10429a22f86c3f31ef83e71284fcb780d 100644 (file)
@@ -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>