summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/cf/retsigtype.m4
blob: 465c6545405764851b06e1754cdfb2937f667750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl
dnl $Id: retsigtype.m4,v 1.1.12.1 2004/04/01 07:27:35 joda Exp $
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])
])
OpenPOWER on IntegriCloud