summaryrefslogtreecommitdiffstats
path: root/otherlibs/graph/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/graph/open.c')
-rw-r--r--otherlibs/graph/open.c2
1 files changed, 2 insertions, 0 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: