$NetBSD: patch-configure,v 1.1 2025/10/12 01:04:55 mrg Exp $ Give main a return type. --- configure.orig 2001-08-23 10:44:13.000000000 -0700 +++ configure 2025-10-11 18:01:25.540045428 -0700 @@ -906,7 +906,7 @@ cat > conftest.$ac_ext << EOF #line 907 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes @@ -1450,7 +1450,7 @@ cat > conftest.$ac_ext << EOF #line 1451 "configure" #include "confdefs.h" -main(){return(0);} +int main(){return(0);} EOF if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes