mirror of
https://github.com/openwrt/packages.git
synced 2025-07-01 12:57:03 +00:00
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 <mail@tk154.de>