]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/crypto/heimdal/cf/retsigtype.m4
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / crypto / heimdal / cf / retsigtype.m4
1 dnl
2 dnl $Id: retsigtype.m4,v 1.1.12.1 2004/04/01 07:27:35 joda Exp $
3 dnl
4 dnl Figure out return type of signal handlers, and define SIGRETURN macro
5 dnl that can be used to return from one
6 dnl
7 AC_DEFUN([rk_RETSIGTYPE],[
8 AC_TYPE_SIGNAL
9 if test "$ac_cv_type_signal" = "void" ; then
10         AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if signal handlers return void.])
11 fi
12 AC_SUBST(VOID_RETSIGTYPE)
13 AH_BOTTOM([#ifdef VOID_RETSIGTYPE
14 #define SIGRETURN(x) return
15 #else
16 #define SIGRETURN(x) return (RETSIGTYPE)(x)
17 #endif])
18 ])