summaryrefslogtreecommitdiffstats
path: root/otherlibs
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs')
-rw-r--r--otherlibs/graph/open.c2
-rw-r--r--otherlibs/unix/kill.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/otherlibs/graph/open.c b/otherlibs/graph/open.c
index 3906ae29e..a2b605a8a 100644
--- a/otherlibs/graph/open.c
+++ b/otherlibs/graph/open.c
@@ -130,6 +130,7 @@ value gr_open_graph(arg)
/* If possible, request that system calls be restarted after
the EVENT_SIGNAL signal. */
+#ifdef POSIX_SIGNALS
#ifdef SA_RESTART
{ struct sigaction action;
sigaction(EVENT_SIGNAL, NULL, &action);
@@ -137,6 +138,7 @@ value gr_open_graph(arg)
sigaction(EVENT_SIGNAL, &action, NULL);
}
#endif
+#endif
#ifdef USE_ASYNC_IO
/* If BSD-style asynchronous I/O are supported:
diff --git a/otherlibs/unix/kill.c b/otherlibs/unix/kill.c
index d9ff474bc..de84a044f 100644
--- a/otherlibs/unix/kill.c
+++ b/otherlibs/unix/kill.c
@@ -25,7 +25,7 @@ value unix_kill(pid, signal) /* ML */
sig = Int_val(signal);
if (sig < 0) {
sig = posix_signals[-sig-1];
- if (sig == 0) invalid_argument("Unix.kill: unavailable signal");
+ if (sig < 0) invalid_argument("Sys.signal: unavailable signal");
}
if (kill(Int_val(pid), sig) == -1)
uerror("kill", Nothing);