aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-04-28 15:48:03 +0100
committerRon Yorston <rmy@pobox.com>2024-04-28 15:48:03 +0100
commite21f531c297d1567720c8b0f1c9bab7daf0cfdad (patch)
treefa2677cec807340f70df8ef25439701a0399061d
parent366cf2abfbcf26931052cad297e35f7eee854936 (diff)
downloadbusybox-w32-e21f531c297d1567720c8b0f1c9bab7daf0cfdad.tar.gz
busybox-w32-e21f531c297d1567720c8b0f1c9bab7daf0cfdad.tar.bz2
busybox-w32-e21f531c297d1567720c8b0f1c9bab7daf0cfdad.zip
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.
-rwxr-xr-xscripts/kconfig/lxdialog/check-lxdialog.sh2
1 files changed, 1 insertions, 1 deletions
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
53check() { 53check() {
54 $cc -x c - -o $tmp 2>/dev/null <<'EOF' 54 $cc -x c - -o $tmp 2>/dev/null <<'EOF'
55#include CURSES_LOC 55#include CURSES_LOC
56main() {} 56int main() {}
57EOF 57EOF
58 if [ $? != 0 ]; then 58 if [ $? != 0 ]; then
59 echo " *** Unable to find the ncurses libraries or the" 1>&2 59 echo " *** Unable to find the ncurses libraries or the" 1>&2