[32/42] xinetd: Fix build with GCC 15

Message ID 20250502101632.1082010-32-michael.tremer@ipfire.org
State New
Headers
Series [01/42] gcc: Update to 15 |

Commit Message

Michael Tremer May 2, 2025, 10:16 a.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/xinetd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lfs/xinetd b/lfs/xinetd
index f49aa1449..597bcec04 100644
--- a/lfs/xinetd
+++ b/lfs/xinetd
@@ -40,7 +40,8 @@  DEPS       =
 
 SERVICES   = xinetd
 
-CFLAGS    += -fcommon -I/usr/include/tirpc -Wl,-ltirpc
+# Fix build with GCC 15
+CFLAGS    += -std=gnu17 -fcommon -I/usr/include/tirpc -Wl,-ltirpc
 
 ###############################################################################
 # Top-level Rules