summaryrefslogtreecommitdiffstats
path: root/polyp/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/util.c')
-rw-r--r--polyp/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/util.c b/polyp/util.c
index fdafe252..a7dc3b1c 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -153,6 +153,7 @@ ssize_t pa_loop_write(int fd, const void*data, size_t size) {
/* Print a warning messages in case that the given signal is not
* blocked or trapped */
void pa_check_signal_is_blocked(int sig) {
+#ifdef HAVE_SIGACTION
struct sigaction sa;
sigset_t set;
@@ -185,6 +186,9 @@ void pa_check_signal_is_blocked(int sig) {
return;
pa_log(__FILE__": WARNING: %s is not trapped. This might cause malfunction!\n", pa_strsignal(sig));
+#else /* HAVE_SIGACTION */
+ pa_log(__FILE__": WARNING: %s might not be trapped. This might cause malfunction!\n", pa_strsignal(sig));
+#endif
}
/* The following function is based on an example from the GNU libc