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.
This commit is contained in:
Pino Toscano 2012-03-19 12:42:15 +00:00 committed by Arun Raghavan
parent 8ea6b0585e
commit 8499afc36f

View file

@ -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;