From 49ccde047a0a9523c810463006d3d94e40f371f2 Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 13 Mar 1995 15:02:40 +0000 Subject: Ported to IRIX: SIGLOST does not exist in SVR4 --- utils/Signal.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/Signal.cc b/utils/Signal.cc index 17c1b1a..84a46c5 100644 --- a/utils/Signal.cc +++ b/utils/Signal.cc @@ -128,7 +128,7 @@ const int SigCont = SIGCONT; const int SigTtin = SIGTTIN; const int SigTtou = SIGTTOU; const int SigUrg = SIGURG; -#if !defined(sun) || !defined(__svr4__) +#if !defined(__svr4__) && !defined(_SYSTYPE_SVR4) const int SigLost = SIGLOST; #endif @@ -184,7 +184,11 @@ void CcuBaseSignalHandler :: Install () { struct sigaction act; - act.sa_handler = (void(*)(int)) DoHandle; +#ifdef __sgi + act.sa_handler = (SIG_PF) DoHandle; +#else + act.sa_handler = DoHandle; +#endif sigemptyset (&act.sa_mask); act.sa_flags = 0; sigaction (Signal, &act, 0); -- cgit v1.1