From: Baruch Siach Date: Fri, 9 Feb 2018 12:49:50 +0000 (+0200) Subject: src: fix build with older glibc X-Git-Tag: v0.8.3~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a73ea7f34092c70de68358b6dc18b252f2062b2;p=thirdparty%2Fnftables.git 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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/parser_bison.y b/src/parser_bison.y index 2e79109f4..578bfdc10 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include