package/bird: fix build with gcc 10
PATCH 1/1 package/bird: fix build with gcc 10
Fixes:
- http://autobuild.buildroot.org/results/3e01f490d76be03f21a0680eb162a0c0267fc1b9
Signed-off-by Fabrice Fontaine <[email protected]>
--- package/bird/0002-Added-missing-extern.patch | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/bird/0002-Added-missing-extern.patch
package/bird/0002-Added-missing-extern.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 4bbc10614f3431c37e6352f5a6ea5c693c31021e Mon Sep 17 00:00:00 2001 +From: Maria Matejka <[email protected]> +Date: Tue, 4 Feb 2020 10:11:16 +0100 +Subject: [PATCH] Added missing extern +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Thanks to Robert Scheck <[email protected]> who reported it +and Toke H?iland-J?rgensen <[email protected]> who suggested this patch. + +[Retrieved from: +https://gitlab.nic.cz/labs/bird/-/commit/4bbc10614f3431c37e6352f5a6ea5c693c31021e] +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + nest/route.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nest/route.h b/nest/route.h +index d2a07f09..b927db5f 100644 +--- a/nest/route.h ++++ b/nest/route.h +@@ -458,7 +458,7 @@ typedef struct rta { + protocol-specific metric is availabe */ + + +-const char * rta_dest_names[RTD_MAX]; ++extern const char * rta_dest_names[RTD_MAX]; + + static inline const char *rta_dest_name(uint n) + { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; } +-- +2.26.2 +
Signature · 1 line
2.27.0
Thomas Petazzoni
AppliedPATCH 1/1 package/bird: fix build with gcc 10
Quoted 8 lines · On Sat, 15 Aug 2020 10:28:18 +0200 Fabrice Fontaine…
Fixes:
- http://autobuild.buildroot.org/results/3e01f490d76be03f21a0680eb162a0c0267fc1b9Signed-off-by Fabrice Fontaine <[email protected]>--- package/bird/0002-Added-missing-extern.patch | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/bird/0002-Added-missing-extern.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com