From 9916479e7c6f5e5c4f5310ed82383927e47fa669 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 11 Aug 2020 12:27:12 -0700 Subject: [PATCH] bmx7: fix compilation with GCC 10 Signed-off-by: Rosen Penev --- bmx7/Makefile | 2 +- bmx7/patches/010-gcc10.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 bmx7/patches/010-gcc10.patch diff --git a/bmx7/Makefile b/bmx7/Makefile index 62cc16b..6e71222 100644 --- a/bmx7/Makefile +++ b/bmx7/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bmx7 PKG_VERSION:=7.1.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/bmx-routing/bmx7/tar.gz/v$(PKG_VERSION)? diff --git a/bmx7/patches/010-gcc10.patch b/bmx7/patches/010-gcc10.patch new file mode 100644 index 0000000..d2b9fcb --- /dev/null +++ b/bmx7/patches/010-gcc10.patch @@ -0,0 +1,11 @@ +--- a/src/bmx.h ++++ b/src/bmx.h +@@ -290,7 +290,7 @@ enum ADGSN { + #define SUCCESS 0 + #define FAILURE -1 + +-const void* FAILURE_PTR; ++extern const void* FAILURE_PTR; + + + #define MAX_SELECT_TIMEOUT_MS 1100 /* MUST be smaller than (1000/2) to fit into max tv_usec */ -- 2.30.2