--- configure.orig 2024-07-15 20:30:43 +++ configure 2024-07-15 23:03:55 @@ -1235,7 +1235,7 @@ macos*|darwin|rhapsody) OS="macosx" SYS="macosx" - os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = )) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /ProductVersion<\/key>([^<]+)<\/string>/) { print , "\n"; exit(0); } exit(1); }' 2>/dev/null` + os_v=`perl -e '{open(F, "< /System/Library/CoreServices/SystemVersion.plist") or exit(2); my ($doc) = ""; my ($line); while (defined($line = )) { $doc .= $line; } close(F); $doc =~ s/\s+//gs; if ($doc =~ /ProductVersion<\/key>([^<]+)<\/string>/) { print $1, "\n"; exit(0); } exit(1); }' 2>/dev/null` if [ "$os_v" = "" ] && [ -x "$HOME/bin/macosver" ] ; then os_v=`"$HOME/bin/macosver" 2>/dev/null` fi @@ -4834,6 +4834,7 @@ #line 4835 "configure" #include "confdefs.h" #include +#include #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) @@ -5078,6 +5079,7 @@ #ifdef HAVE_STDLIB_H # include #endif +#include #include #include #include @@ -6470,6 +6472,7 @@ #ifdef HAVE_STDLIB_H # include #endif +#include #ifdef HAVE_NCURSES_H # define NCURSES_OPAQUE 0 @@ -6526,7 +6529,7 @@ #endif -main(int argc, char **argv) +int main(int argc, char **argv) { /* Note: don't actually call curses, since it may block; * We just want to see if it (dynamic) linked in okay. @@ -8461,7 +8464,7 @@ #include #endif #include /* MG: always incl */ -extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5); +extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5); int main(void) { ; return 0; } @@ -8726,6 +8729,7 @@ #ifdef HAVE_STDLIB_H # include #endif +#include #include #include #include @@ -10184,8 +10188,9 @@ #line 10185 "configure" #include "confdefs.h" #include +#include /* If setvbuf has the reversed format, exit 0. */ - main () { + int main (void) { /* This call has the arguments reversed. A reversed system may check and see that the address of main is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */