rrdtool1: fix compilation with GCC 15
authorTil Kaiser <redacted>
Fri, 20 Jun 2025 11:02:51 +0000 (13:02 +0200)
committerRobert Marko <redacted>
Mon, 23 Jun 2025 08:25:13 +0000 (10:25 +0200)
commit2c811dd762493c12ec899e1e89b47cc97f877c45
treeb9d209951819d04543c59c84d3a3b89bf47c831d
parent9672ccaf5bcbd5460aeb6ef0f344fbc5e5f3e86c
rrdtool1: fix compilation with GCC 15

Currently, rrdtool1 produces the following build error
for various C files while building with GCC 15:

In file included from rrd_tool.h:93,
                 from rrd_cgi.c:11:
getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)'
  108 | extern int getopt ();
      |            ^~~~~~
In file included from include/fortify/unistd.h:22,
                 from rrd_tool.h:56:
include/unistd.h:127:5: note: previous declaration of 'getopt' with type 'int(int,  char * const*, const char *)'
  127 | int getopt(int, char * const [], const char *);
      |     ^~~~~~

This adds -std=gnu17 to TARGET_CFLAGS to fix the compilation error.

Signed-off-by: Til Kaiser <redacted>
utils/rrdtool1/Makefile
git clone https://git.99rst.org/PROJECT