]> git.ipfire.org Git - thirdparty/nftables.git/commit
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)
commit6a73ea7f34092c70de68358b6dc18b252f2062b2
treea9711d3938ffd415c5a394d3e1819fc136f91dd8
parent702cf0a7958d6456089b39bffef279d390db2e7a
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>
src/parser_bison.y