diff options
author | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> | 2016-09-30 07:12:26 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-09-30 10:15:28 +0200 |
commit | 34c2726ca7631202f916215c32abce663dda5e88 (patch) | |
tree | 96cf88f01c0d2ff7b5f6a2c078335f556ab18a71 /package/network/utils/iproute2/patches/130-missing_include.patch | |
parent | eb7307cb943bfe4f10fa2f77abbe71dfcbbb3601 (diff) | |
download | mtk-20170518-34c2726ca7631202f916215c32abce663dda5e88.zip mtk-20170518-34c2726ca7631202f916215c32abce663dda5e88.tar.gz mtk-20170518-34c2726ca7631202f916215c32abce663dda5e88.tar.bz2 |
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@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/network/utils/iproute2/patches/130-missing_include.patch')
-rw-r--r-- | package/network/utils/iproute2/patches/130-missing_include.patch | 10 |
1 files changed, 10 insertions, 0 deletions
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> |