--- configure.orig 2025-03-11 23:32:54 +++ configure 2025-03-11 23:49:23 @@ -1233,7 +1233,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 @@ -4782,6 +4782,7 @@ #line 4783 "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))) @@ -5028,6 +5029,7 @@ #include #include #include +#include int main(void) { @@ -6412,6 +6414,7 @@ /* includes */ #include #include +#include #ifdef HAVE_NCURSES_H # define NCURSES_OPAQUE 0 @@ -6468,7 +6471,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. @@ -10125,8 +10128,9 @@ #line 10126 "configure" #include "confdefs.h" #include +#include /* If setvbuf has the reversed format, exit 0. */ - main () { + int main () { /* 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. */