From 43ccdb29927490ed6ca0bf770eb0afefb3a5d8c2 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 29 Jul 2023 00:17:46 +0200 Subject: [PATCH] kconfig/lxdialog: Make main() return 0 Fixes build with newer host toolchain. Change-Id: I5c69bcdf6422d86b852e29768ba6dfbe0e9c2a76 --- 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 5075ebf2d3b9..910ca1f7ce00 100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh @@ -47,7 +47,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() { return 0; } EOF if [ $? != 0 ]; then echo " *** Unable to find the ncurses libraries or the" 1>&2 -- 2.20.1