mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-28 16:29:56 +00:00
red-stream: fix build without SASL
put red_stream_disable_writev in an #ifdef HAVE_SASL block.
red_stream_disable_writev is only called from functions
that are already in an #ifdef HAVE_SASL block.
Currently when building with SASL disabled, I get:
CC red-stream.lo
red-stream.c:441:13: error: 'red_stream_disable_writev'
defined but not used [-Werror=unused-function]
Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
9575713dfb
commit
49234be2dd
@ -438,10 +438,12 @@ bool red_stream_is_ssl(RedStream *stream)
|
||||
return (stream->priv->ssl != NULL);
|
||||
}
|
||||
|
||||
#if HAVE_SASL
|
||||
static void red_stream_disable_writev(RedStream *stream)
|
||||
{
|
||||
stream->priv->writev = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
RedStreamSslStatus red_stream_ssl_accept(RedStream *stream)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user