package/daemon: fix build with gcc 15 and musl libc

daemon provides its own getopt() declaration for non-GNU libcs. This
declaration is compatible with musl provided one with C standards before
C23. GCC 15 defaults to C23 that makes the empty params declaration
equivalent to getopt(void), which is incompatible with musl declaration.

Set C standard to gnu99 to restore the previous behaviour.

Fixes:
https://autobuild.buildroot.org/results/cc3311c86e2b14bf9a9c1ea00056e0b290ec11a3

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Baruch Siach
2025-07-27 20:12:05 +03:00
committed by Romain Naour
parent 0bf9eae25c
commit 681b34ea4d
+2 -1
View File
@@ -18,7 +18,8 @@ define DAEMON_CONFIGURE_CMDS
endef
define DAEMON_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -std=c99" -C $(@D)
endef
define DAEMON_INSTALL_TARGET_CMDS