test for signal handler return type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8677 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
18
cf/retsigtype.m4
Normal file
18
cf/retsigtype.m4
Normal file
@@ -0,0 +1,18 @@
|
||||
dnl
|
||||
dnl $Id$
|
||||
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])
|
||||
])
|
Reference in New Issue
Block a user