mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
34c2726ca7
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>
21 lines
400 B
Diff
21 lines
400 B
Diff
--- a/lib/namespace.c
|
|
+++ b/lib/namespace.c
|
|
@@ -10,6 +10,7 @@
|
|
#include <fcntl.h>
|
|
#include <dirent.h>
|
|
#include <limits.h>
|
|
+#include <sys/param.h>
|
|
|
|
#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>
|