diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-28 15:48:03 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-28 15:48:03 +0100 |
commit | e21f531c297d1567720c8b0f1c9bab7daf0cfdad (patch) | |
tree | fa2677cec807340f70df8ef25439701a0399061d | |
parent | 366cf2abfbcf26931052cad297e35f7eee854936 (diff) | |
download | busybox-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-x | scripts/kconfig/lxdialog/check-lxdialog.sh | 2 |
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 | |||
53 | check() { | 53 | check() { |
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 |
56 | main() {} | 56 | int main() {} |
57 | EOF | 57 | EOF |
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 |