diff --git a/acinclude.m4 b/acinclude.m4 index 9b4a592d89..395e7fbfc4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -323,11 +323,13 @@ dnl Various compiler setup. AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_SIGNAL -AC_CHECK_TYPE([sig_t], , - [AC_DEFINE([sig_t], [int], - [Define to int if does not define.])], -[#include -#include ]) +AC_CHECK_TYPES(sig_t, , , + [#include + #include ]) +AH_BOTTOM( +[#ifndef HAVE_SIG_T +typedef RETSIGTYPE (*sig_t) (); +#endif]) COMPILER_HAS_FUNCTION_MACRO dnl Checks for programs.