--- readline-8.1.2.old/examples/rlfe/configure +++ readline-8.1.2/examples/rlfe/configure @@ -3241,7 +3241,8 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -main(){exit(0);} +#include +void main(){exit(0);} _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -3271,7 +3272,8 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -main(){exit(0);} +#include +void main(){exit(0);} _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -3298,7 +3300,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -main() +void main() { int __something_strange_(); __something_strange_(0); @@ -3471,8 +3473,7 @@ #define S_IFIFO 0010000 #endif - -main() +void main() { #ifdef FD_SET fd_set f; @@ -3506,7 +3507,7 @@ #include #include -main() +void main() { int s1, s2, l; struct sockaddr_un a; @@ -3686,7 +3687,7 @@ /* end confdefs.h. */ extern char *tgoto(); -main() +void main() { exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1); } @@ -3898,7 +3899,7 @@ #include #include #include -main() +void main() { struct stat sb; char *x,*ttyname(); @@ -4166,7 +4167,7 @@ got++; } -main() +void main() { /* on hpux we use sigvec to get bsd signals */ #ifdef __hpux