summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorchatty1995-03-13 15:02:40 +0000
committerchatty1995-03-13 15:02:40 +0000
commit49ccde047a0a9523c810463006d3d94e40f371f2 (patch)
tree02e2a8c4109a7e09c0e3d99543f6a96d919739ad /utils
parent87b538c70c76a6c5e0fd3ed6a9b40ca3873e51b6 (diff)
downloadivy-league-49ccde047a0a9523c810463006d3d94e40f371f2.zip
ivy-league-49ccde047a0a9523c810463006d3d94e40f371f2.tar.gz
ivy-league-49ccde047a0a9523c810463006d3d94e40f371f2.tar.bz2
ivy-league-49ccde047a0a9523c810463006d3d94e40f371f2.tar.xz
Ported to IRIX: SIGLOST does not exist in SVR4
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);