POSIX defines strsignal(3) as being in string.h, not signal.h. We leave the test as also checking signal.h for compatibility with any legacy non-conforming systems. --- aclocal.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/aclocal.m4 b/aclocal.m4 index 1413267f..c4a54f27 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -300,7 +300,8 @@ AC_DEFUN(BASH_FUNC_STRSIGNAL, [AC_MSG_CHECKING([for the existence of strsignal]) AC_CACHE_VAL(bash_cv_have_strsignal, [AC_TRY_LINK([#include <sys/types.h> -#include <signal.h>], +#include <signal.h> +#include <string.h>], [char *s = (char *)strsignal(2);], bash_cv_have_strsignal=yes, bash_cv_have_strsignal=no)]) AC_MSG_RESULT($bash_cv_have_strsignal) -- 2.20.1