From 6a51c4168034c601cd0984fe80180f4199e60503 Mon Sep 17 00:00:00 2001 From: Til Kaiser Date: Wed, 7 Jan 2026 14:24:29 +0100 Subject: [PATCH] ifstat: fix build with GCC 15 ifstat fails to build with GCC 15 due to an incorrect detection of the signal handler return type. The configure script shipped with ifstat uses an obsolete K&R-style declaration: void (*signal())(); With GCC 15 this causes the signal() return type check to incorrectly assume 'int' instead of 'void'. As a result, the generated code defines signal handlers returning int, which conflicts with struct sigaction expecting a void (*)(int) handler and leads to a build failure: assignment to 'void (*)(int)' from incompatible pointer type 'int (*)(int)' Enable autoreconf during the build to regenerate the configure script, which correctly detects the signal handler type and fixes the compilation error. Signed-off-by: Til Kaiser --- net/ifstat/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ifstat/Makefile b/net/ifstat/Makefile index ddbef5dbe9..fb30521b41 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:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/ @@ -19,6 +19,8 @@ PKG_MAINTAINER:=Nikil Mehta PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING +PKG_FIXUP:=autoreconf + include $(INCLUDE_DIR)/package.mk define Package/ifstat