From e21f531c297d1567720c8b0f1c9bab7daf0cfdad Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 28 Apr 2024 15:48:03 +0100 Subject: build system: fix ncurses detection Recent versions of gcc fail to build the binary to test for ncurses because main() is lacking a return type. --- scripts/kconfig/lxdialog/check-lxdialog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index 3b401d86a..a608d4c5e 100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh @@ -53,7 +53,7 @@ trap "rm -f $tmp" 0 1 2 3 15 check() { $cc -x c - -o $tmp 2>/dev/null <<'EOF' #include CURSES_LOC -main() {} +int main() {} EOF if [ $? != 0 ]; then echo " *** Unable to find the ncurses libraries or the" 1>&2 -- cgit v1.2.3-55-g6feb