attempting to fix sa_handler signature for IRIX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
24
configure.in
24
configure.in
@@ -2358,6 +2358,30 @@ if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
|
||||
AC_MSG_WARN([No POSIX signal functions on this system, wxApp::OnFatalException will not be called])
|
||||
wxUSE_ON_FATAL_EXCEPTION=no
|
||||
fi
|
||||
|
||||
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
AC_CACHE_CHECK([for sa_handler type], wx_cv_type_sa_handler,
|
||||
[
|
||||
AC_TRY_COMPILE([#include <signal.h>],
|
||||
[
|
||||
extern void testSigHandler(int);
|
||||
|
||||
struct sigaction sa;
|
||||
sa.sa_handler = testSigHandler;
|
||||
], [
|
||||
wx_cv_type_sa_handler=int
|
||||
], [
|
||||
wx_cv_type_sa_handler=void
|
||||
])
|
||||
])
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
AC_DEFINE_UNQUOTED(wxTYPE_SA_HANDLER, $wx_cv_type_sa_handler)
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl check for vfork() (even if it's the same as fork() in modern Unices)
|
||||
|
@@ -636,6 +636,9 @@
|
||||
/* The type of 3rd argument to getsockname() - usually size_t or int */
|
||||
#undef SOCKLEN_T
|
||||
|
||||
/* The signal handler prototype */
|
||||
#undef wxTYPE_SA_HANDLER
|
||||
|
||||
/* gettimeofday() usually takes 2 arguments, but some really old systems might
|
||||
* have only one, in which case define WX_GETTIMEOFDAY_NO_TZ */
|
||||
#undef WX_GETTIMEOFDAY_NO_TZ
|
||||
@@ -721,6 +724,9 @@
|
||||
/* Define if you have the dlopen function. */
|
||||
#undef HAVE_DLOPEN
|
||||
|
||||
/* Define if you have the dlerror function. */
|
||||
#undef HAVE_DLERROR
|
||||
|
||||
/* Define if you have the gethostname function. */
|
||||
#undef HAVE_GETHOSTNAME
|
||||
|
||||
|
@@ -848,7 +848,7 @@ long wxGetFreeMemory()
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
static void wxFatalSignalHandler(int WXUNUSED(signal))
|
||||
static void wxFatalSignalHandler(wxTYPE_SA_HANDLER)
|
||||
{
|
||||
if ( wxTheApp )
|
||||
{
|
||||
|
Reference in New Issue
Block a user