From: Hirokazu MORIKAWA Date: Mon, 27 May 2024 11:58:25 +0000 (+0900) Subject: mg: fix compilation with GCC 14 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1e81025af7d665c1c27f11e3265b6fd28fda7443;p=feed%2Fpackages.git mg: fix compilation with GCC 14 Addressing compile errors with gcc-14 Signed-off-by: Hirokazu MORIKAWA --- diff --git a/utils/mg/Makefile b/utils/mg/Makefile index 5c8e18b819..056700311f 100644 --- a/utils/mg/Makefile +++ b/utils/mg/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mg PKG_VERSION:=7.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/ibara/mg/tar.gz/$(PKG_NAME)-$(PKG_VERSION)? diff --git a/utils/mg/patches/902-fix_for_gcc14.patch b/utils/mg/patches/902-fix_for_gcc14.patch new file mode 100644 index 0000000000..0f2b6ee210 --- /dev/null +++ b/utils/mg/patches/902-fix_for_gcc14.patch @@ -0,0 +1,10 @@ +--- a/main.c ++++ b/main.c +@@ -18,6 +18,7 @@ + #include + #if defined(__linux__) || defined(__CYGWIN__) + #include ++#include + #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) + #include + #else