mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-05 20:58:36 +00:00
Fix --without-sasl build
There are 2 SASL-related function prototypes which are unused in the --without-sasl case. They cause a warning, and a build failure when using -Werror. Wrapping them in #if HAVE_SASL avoids this issue.
This commit is contained in:
parent
37bf7a5163
commit
db984941af
@ -162,7 +162,9 @@ void reds_stream_remove_watch(RedsStream* s)
|
||||
}
|
||||
}
|
||||
|
||||
#if HAVE_SASL
|
||||
static ssize_t reds_stream_sasl_read(RedsStream *s, uint8_t *buf, size_t nbyte);
|
||||
#endif
|
||||
|
||||
ssize_t reds_stream_read(RedsStream *s, void *buf, size_t nbyte)
|
||||
{
|
||||
@ -196,7 +198,9 @@ bool reds_stream_write_all(RedsStream *stream, const void *in_buf, size_t n)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#if HAVE_SASL
|
||||
static ssize_t reds_stream_sasl_write(RedsStream *s, const void *buf, size_t nbyte);
|
||||
#endif
|
||||
|
||||
ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user