DEVEL15-irix-no-sig-t-20090316
authorDerrick Brashear <shadow@dementia.org>
Mon, 16 Mar 2009 15:48:32 +0000 (15:48 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 16 Mar 2009 15:48:32 +0000 (15:48 +0000)
LICENSE IPL10

correct the sig_t checking macro

(cherry picked from commit 7815171a8d300d550dd61c2db0f329b19390cf16)

acinclude.m4

index 9b4a592..395e7fb 100644 (file)
@@ -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 <signal.h> does not define.])],
-[#include <sys/types.h>
-#include <signal.h>])
+AC_CHECK_TYPES(sig_t, , ,
+  [#include <sys/types.h>
+   #include <signal.h> ])
+AH_BOTTOM(
+[#ifndef HAVE_SIG_T
+typedef RETSIGTYPE (*sig_t) ();
+#endif])
 COMPILER_HAS_FUNCTION_MACRO
 
 dnl Checks for programs.