2
1

0001-src-fix-build-with-older-glibc.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. glibc before 2.19 missed the definition of IPPROTO_MH. This leads to
  6. build failure:
  7. parser_bison.y: In function 'nft_parse':
  8. parser_bison.y:3793:21: error: 'IPPROTO_MH' undeclared (first use in this function)
  9. | MH { $$ = IPPROTO_MH; }
  10. ^
  11. Since we have a local definition of IPPROTO_MH in headers.h use that to
  12. fix the build.
  13. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  14. ---
  15. Upstream status: https://marc.info/?l=netfilter-devel&m=151818061103886&w=2
  16. src/parser_bison.y | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/src/parser_bison.y b/src/parser_bison.y
  19. index 2e79109f4da3..578bfdc10429 100644
  20. --- a/src/parser_bison.y
  21. +++ b/src/parser_bison.y
  22. @@ -29,6 +29,7 @@
  23. #include <rule.h>
  24. #include <statement.h>
  25. #include <expression.h>
  26. +#include <headers.h>
  27. #include <utils.h>
  28. #include <parser.h>
  29. #include <erec.h>
  30. --
  31. 2.15.1