horst: Fix build for LEDE 4154/head
authorBruno Randolf <br1@einfach.org>
Wed, 15 Mar 2017 22:05:34 +0000 (22:05 +0000)
committerBruno Randolf <br1@einfach.org>
Wed, 15 Mar 2017 22:12:55 +0000 (22:12 +0000)
Fortified headers don't seem to like _GNU_SOURCE in this case,
but we can remove that define since it's not needed. Add a patch
for LEDE until a new horst version is released.

Signed-off-by: Bruno Randolf <br1@einfach.org>
net/horst/patches/0001-Remove-_GNU_SOURCE-from-ccan-config.patch [new file with mode: 0644]

diff --git a/net/horst/patches/0001-Remove-_GNU_SOURCE-from-ccan-config.patch b/net/horst/patches/0001-Remove-_GNU_SOURCE-from-ccan-config.patch
new file mode 100644 (file)
index 0000000..eeab738
--- /dev/null
@@ -0,0 +1,26 @@
+From c91e2f6d72823938052044eef858c3c675617ae4 Mon Sep 17 00:00:00 2001
+From: Bruno Randolf <br1@einfach.org>
+Date: Wed, 15 Mar 2017 21:22:48 +0000
+Subject: [PATCH] Remove _GNU_SOURCE from ccan config
+
+It creates problems with LEDEs FORTIFY and is not needed
+---
+ config.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/config.h b/config.h
+index 5c398c4..7e1027a 100644
+--- a/config.h
++++ b/config.h
+@@ -1,8 +1,5 @@
+ /* Generated by CCAN configurator */
+ #ifndef CCAN_CONFIG_H
+ #define CCAN_CONFIG_H
+-#ifndef _GNU_SOURCE
+-#define _GNU_SOURCE /* Always use GNU extensions. */
+-#endif
+ #define HAVE_TYPEOF 1
+ #endif /* CCAN_CONFIG_H */
+-- 
+2.7.4
+