mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
GCC 15 defaults to C23, which removes support for K&R-style unprototyped function declarations. This causes build failures with strict modern C libraries. Add proper function prototypes for getopt, getopt_long, getopt_long_only, getenv, and _getopt_internal to comply with C23 requirements. Fixes build with musl libc and GCC 15. Upstream: https://github.com/Project-OSS-Revival/enca/pull/97 Fixes: https://autobuild.buildroot.net/results/982831f380ba21a28d4a9a0cb100d055771898e2/ Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>