summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/Signal.cc8
1 files changed, 6 insertions, 2 deletions
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);