From 8499afc36f71342ec6118dc81adb85bc1b3f4aea Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 19 Mar 2012 12:42:15 +0000 Subject: [PATCH] libpulse: Cope with systems not implementing SA_NOCLDWAIT Even though SA_NOCLDWAIT is a POSIX mandatory flag the Hurd doesn't implement it. So let's only check for it if it's defined. --- src/pulse/context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pulse/context.c b/src/pulse/context.c index e03d88ca8..5bd3448b0 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -660,7 +660,11 @@ static int context_autospawn(pa_context *c) { goto fail; } +#ifdef SA_NOCLDWAIT if ((sa.sa_flags & SA_NOCLDWAIT) || sa.sa_handler == SIG_IGN) { +#else + if (sa.sa_handler == SIG_IGN) { +#endif pa_log_debug("Process disabled waitpid(), cannot autospawn."); pa_context_fail(c, PA_ERR_CONNECTIONREFUSED); goto fail;