Fix: conftest.c:53:2: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] conftest.c:115:2: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] tty.c:899:13: error: implicit declaration of function 'openpty' is invalid in C99 [-Werror,-Wimplicit-function-declaration] tty.c:1124:6: error: implicit declaration of function 'login_tty' is invalid in C99 [-Werror,-Wimplicit-function-declaration] --- configure.orig 2008-10-29 22:07:22.000000000 -0500 +++ configure 2022-01-02 19:15:22.000000000 -0600 @@ -9172,7 +9172,7 @@ #endif int main() { /* exit succesfully if setpgrp() takes two args (*BSD systems) */ - exit(setpgrp(0, 0) != 0); + return setpgrp(0, 0) != 0; } _ACEOF rm -f conftest$ac_exeext @@ -10870,7 +10870,7 @@ int main() { int a = 0; isblank(a++); - exit(a != 1); + return a != 1; } _ACEOF @@ -11196,7 +11196,7 @@ kill((int)getpid(), SIGINT); kill((int)getpid(), SIGINT); /* exit succesfully if don't have to reinstall sighandler when invoked */ - exit(nsigint != 2); + return nsigint != 2; } _ACEOF rm -f conftest$ac_exeext --- tty.c.orig 2008-11-02 14:53:40.000000000 -0600 +++ tty.c 2022-01-02 19:15:22.000000000 -0600 @@ -6,6 +6,7 @@ * This file is part of JOE (Joe's Own Editor) */ #include "types.h" +#include /* not needed: ioctl() moved to utils.c #ifdef GWINSZ_IN_SYS_IOCTL