Alexander Naumov 98677d5bf5 configure: add needed system headers in checks and return values for implicit function declarations
Newer compilers throw warnings when a funciton is used with implicit
declaration and enabling -Werror can silently fail these tests and
result in wrong configure results.
Therefore add the needed headers in the AC_TRY_LINK macros

Upstream variant:
https://lists.gnu.org/archive/html/screen-devel/2022-08/msg00000.html

Fix several implicit function declarations and implicit
int return types in the configure script.
This ensures that the package continuesto build with future compilers
which do not support these by default.

Posted upstream:
https://lists.gnu.org/archive/html/screen-devel/2023-03/msg00001.html

Tested with clang 16.0.6 x86_64.

Thanks to:
Khem Raj <raj.khem@gmail.com>
Arjun Shankar <arjun@redhat.com>
Nicholas Vinson <nvinson234@gmail.com>
2023-07-14 16:09:31 +02:00
2022-01-06 03:23:32 +02:00
2005-12-15 16:11:20 +00:00
Description
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells
9.9 MiB
Languages
C 76.7%
Roff 14.1%
PostScript 6%
Shell 1.4%
Makefile 1.1%
Other 0.7%