ifstat: fix build with GCC 15
authorTil Kaiser <redacted>
Wed, 7 Jan 2026 13:24:29 +0000 (14:24 +0100)
committerHannu Nyman <redacted>
Sun, 14 Jun 2026 17:33:53 +0000 (20:33 +0300)
commit6a51c4168034c601cd0984fe80180f4199e60503
tree2f6c2668897a72f6776161a26ee1a2d59dcf4a17
parentea77e92a81c97872c662728b5792cbe3440a1ec6
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 <redacted>
net/ifstat/Makefile
git clone https://git.99rst.org/PROJECT