]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/nftables/0001-src-fix-build-with-older-glibc.patch
ser2net: bump to version 3.5
[coffee/buildroot.git] / package / nftables / 0001-src-fix-build-with-older-glibc.patch
1 From 381eaa40735385a1a60e5ab0a7daf4bb847fc2ab Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Fri, 9 Feb 2018 14:42:31 +0200
4 Subject: [PATCH] src: fix build with older glibc
5
6 glibc before 2.19 missed the definition of IPPROTO_MH. This leads to
7 build failure:
8
9 parser_bison.y: In function 'nft_parse':
10 parser_bison.y:3793:21: error: 'IPPROTO_MH' undeclared (first use in this function)
11     | MH { $$ = IPPROTO_MH; }
12                      ^
13
14 Since we have a local definition of IPPROTO_MH in headers.h use that to
15 fix the build.
16
17 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
18 ---
19 Upstream status: https://marc.info/?l=netfilter-devel&m=151818061103886&w=2
20
21  src/parser_bison.y | 1 +
22  1 file changed, 1 insertion(+)
23
24 diff --git a/src/parser_bison.y b/src/parser_bison.y
25 index 2e79109f4da3..578bfdc10429 100644
26 --- a/src/parser_bison.y
27 +++ b/src/parser_bison.y
28 @@ -29,6 +29,7 @@
29  #include <rule.h>
30  #include <statement.h>
31  #include <expression.h>
32 +#include <headers.h>
33  #include <utils.h>
34  #include <parser.h>
35  #include <erec.h>
36 -- 
37 2.15.1
38