From fcf8bdc62aa419991273ff120d408273c8f85f1e Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 18 May 2025 19:46:26 +0200 Subject: [PATCH] package/iftop: fix build with gcc-15.x Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- package/iftop/0003-iftop-function-args.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/iftop/0003-iftop-function-args.patch diff --git a/package/iftop/0003-iftop-function-args.patch b/package/iftop/0003-iftop-function-args.patch new file mode 100644 index 0000000000..7ef38bf0bb --- /dev/null +++ b/package/iftop/0003-iftop-function-args.patch @@ -0,0 +1,18 @@ +Fix gcc-15.x build + +Upstream: https://src.fedoraproject.org/rpms/iftop/c/d098f91f0f590c1cab264bf77851d4018c430d9f?branch=rawhide + +Signed-off-by: Bernd Kuhls + +diff -up iftop-1.0pre4/cfgfile.h.fargs iftop-1.0pre4/cfgfile.h +--- iftop-1.0pre4/cfgfile.h.fargs 2014-01-05 19:47:53.000000000 +0100 ++++ iftop-1.0pre4/cfgfile.h 2025-05-15 18:09:05.849754901 +0200 +@@ -13,7 +13,7 @@ typedef struct { + int value; + } config_enumeration_type; + +-int read_config(); ++int read_config(char *f, int whinge); + + char *config_get_string(const char *directive); + int config_get_bool(const char *directive);