mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
mg: fix compilation with GCC 14
Addressing compile errors with gcc-14 Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
This commit is contained in:
committed by
Rosen Penev
parent
e28bd51cab
commit
1e81025af7
@@ -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)?
|
||||
|
||||
10
utils/mg/patches/902-fix_for_gcc14.patch
Normal file
10
utils/mg/patches/902-fix_for_gcc14.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <unistd.h>
|
||||
#if defined(__linux__) || defined(__CYGWIN__)
|
||||
#include <pty.h>
|
||||
+#include <utmp.h>
|
||||
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
#include <util.h>
|
||||
#else
|
||||
Reference in New Issue
Block a user