From f3081700d931fc8f7d5cb13494e11100cb28b19f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 19 Mar 2025 01:16:04 -0700 Subject: [PATCH] ncurses: Pin to C17 standard Newer snapshots of ncurses have the fixes but they are many needed to get C23 going. Until next release lets stick with C17 even while GCC 15 switches to C23 defaults. Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-core/ncurses/ncurses.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 3f93550cf99..1e9ec38ceac 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc @@ -28,6 +28,9 @@ ENABLE_WIDEC ?= "true" # _GNU_SOURCE is required for widec stuff and is not detected automatically CPPFLAGS += "-D_GNU_SOURCE" +# Check if we still need it when next release (6.6) happens +CFLAGS += "-std=gnu17" + # natives don't generally look in base_libdir base_libdir:class-native = "${libdir}" -- 2.47.3