Browse Source

package/iftop: fix build with gcc-15.x

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Bernd Kuhls 2 months ago
parent
commit
fcf8bdc62a
1 changed files with 18 additions and 0 deletions
  1. 18 0
      package/iftop/0003-iftop-function-args.patch

+ 18 - 0
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 <bernd@kuhls.net>
+
+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);