From: Michael Tremer Date: Fri, 2 May 2025 10:15:58 +0000 (+0000) Subject: sysklogd: Fix build with GCC 15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51d05991ccb2805bd298a909fa4ebfc00e4343de;p=ipfire-2.x.git sysklogd: Fix build with GCC 15 Signed-off-by: Michael Tremer --- diff --git a/lfs/sysklogd b/lfs/sysklogd index b6e5d4c2f..4e5557264 100644 --- a/lfs/sysklogd +++ b/lfs/sysklogd @@ -32,6 +32,9 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +# Fix build with GCC 15 +CFLAGS += -std=gnu17 + ############################################################################### # Top-level Rules ############################################################################### @@ -74,7 +77,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # Compile fix cd $(DIR_APP) && sed -i "s/union wait/int/" syslogd.c - cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make $(MAKETUNING) RPM_OPT_FLAGS="$(CFLAGS)" cd $(DIR_APP) && make install touch /var/log/{dhcpcd.log,messages} chmod 664 /var/log/{dhcpcd.log,messages}