summaryrefslogtreecommitdiff
path: root/cf/retsigtype.m4
diff options
context:
space:
mode:
Diffstat (limited to 'cf/retsigtype.m4')
-rw-r--r--cf/retsigtype.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/cf/retsigtype.m4 b/cf/retsigtype.m4
new file mode 100644
index 0000000000000..2857bff1d965e
--- /dev/null
+++ b/cf/retsigtype.m4
@@ -0,0 +1,18 @@
+dnl
+dnl $Id: retsigtype.m4 13338 2004-02-12 14:21:14Z lha $
+dnl
+dnl Figure out return type of signal handlers, and define SIGRETURN macro
+dnl that can be used to return from one
+dnl
+AC_DEFUN([rk_RETSIGTYPE],[
+AC_TYPE_SIGNAL
+if test "$ac_cv_type_signal" = "void" ; then
+ AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if signal handlers return void.])
+fi
+AC_SUBST(VOID_RETSIGTYPE)
+AH_BOTTOM([#ifdef VOID_RETSIGTYPE
+#define SIGRETURN(x) return
+#else
+#define SIGRETURN(x) return (RETSIGTYPE)(x)
+#endif])
+]) \ No newline at end of file