From 2b01007dd47b438222332bd64b75304ea5ed5ff6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 9 Jun 2024 18:25:28 -0700 Subject: [PATCH] ifstat: fix compilation with GCC14 Need explicit int. Signed-off-by: Rosen Penev --- net/ifstat/Makefile | 2 +- net/ifstat/patches/010-gcc14.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/ifstat/patches/010-gcc14.patch diff --git a/net/ifstat/Makefile b/net/ifstat/Makefile index 208f4b9a94..ddbef5dbe9 100644 --- a/net/ifstat/Makefile +++ b/net/ifstat/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ifstat PKG_VERSION:=1.1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/ diff --git a/net/ifstat/patches/010-gcc14.patch b/net/ifstat/patches/010-gcc14.patch new file mode 100644 index 0000000000..d9d6340f8e --- /dev/null +++ b/net/ifstat/patches/010-gcc14.patch @@ -0,0 +1,11 @@ +--- a/configure ++++ b/configure +@@ -783,7 +783,7 @@ cat > conftest.$ac_ext << EOF + #line 784 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes -- 2.30.2