diff options
-rw-r--r-- | src/pulsecore/protocol-native.c | 5 | ||||
-rw-r--r-- | src/pulsecore/pstream-util.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index ffa5c4dcd..569758884 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -2604,6 +2604,11 @@ static void setup_srbchannel(pa_native_connection *c) { pa_tagstruct *t; int fdlist[2]; +#ifndef HAVE_CREDS + pa_log_debug("Disabling srbchannel, reason: No fd passing support"); + return; +#endif + if (!c->options->srbchannel) { pa_log_debug("Disabling srbchannel, reason: Must be enabled by module parameter"); return; diff --git a/src/pulsecore/pstream-util.c b/src/pulsecore/pstream-util.c index 505f0cf56..d0d6c662a 100644 --- a/src/pulsecore/pstream-util.c +++ b/src/pulsecore/pstream-util.c @@ -90,8 +90,8 @@ void pa_pstream_send_tagstruct_with_creds(pa_pstream *p, pa_tagstruct *t, const pa_pstream_send_tagstruct_with_ancil_data(p, t, NULL); } -void pa_pstream_send_tagstruct_with_fds(pa_pstream *p, pa_tagstruct *t, int nfd, const int *fds, - bool close_fds) { +void PA_GCC_NORETURN pa_pstream_send_tagstruct_with_fds(pa_pstream *p, pa_tagstruct *t, int nfd, const int *fds, + bool close_fds) { pa_assert_not_reached(); } |