[source] iproute2: fix no fortify build failure

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 30 01:16:13 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/34c2726ca7631202f916215c32abce663dda5e88

commit 34c2726ca7631202f916215c32abce663dda5e88
Author: Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>
AuthorDate: Fri Sep 30 07:12:26 2016 +0100

    iproute2: fix no fortify build failure
    
    Fix rt_names build failure when FORTIFY_SOURCE disabled.
    Include limits.h which otherwise gets automatically included
    by fortify headers.
    
    Solves FS #194
    
    Signed-off-by: Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>
---
 .../network/utils/iproute2/patches/130-missing_include.patch   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/network/utils/iproute2/patches/130-missing_include.patch b/package/network/utils/iproute2/patches/130-missing_include.patch
index 88dfd85..8759a62 100644
--- a/package/network/utils/iproute2/patches/130-missing_include.patch
+++ b/package/network/utils/iproute2/patches/130-missing_include.patch
@@ -8,3 +8,13 @@
  
  #include "utils.h"
  #include "namespace.h"
+--- a/lib/rt_names.c
++++ b/lib/rt_names.c
+@@ -18,6 +18,7 @@
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <dirent.h>
++#include <limits.h>
+ 
+ #include <asm/types.h>
+ #include <linux/rtnetlink.h>



More information about the lede-commits mailing list