summaryrefslogtreecommitdiff
path: root/src/if_cscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index b2a4ce1a1..b8fef2887 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -2278,7 +2278,11 @@ cs_release_csp(i, freefnpp)
/* Use sigaction() to limit the waiting time to two seconds. */
sigemptyset(&sa.sa_mask);
sa.sa_handler = sig_handler;
+# ifdef SA_NODEFER
sa.sa_flags = SA_NODEFER;
+# else
+ sa.sa_flags = 0;
+# endif
sigaction(SIGALRM, &sa, &old);
alarm(2); /* 2 sec timeout */