mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix compilation when building without sasl
Use of saslDecoded field need to be guarded by #if HAVE_SASL/endif * src/remote/remote_driver.c: fix remoteIOEventLoop accordingly
This commit is contained in:
parent
0fa17ff52a
commit
3028f51c38
@ -10186,8 +10186,10 @@ remoteIOEventLoop(virConnectPtr conn,
|
|||||||
* don't want to sleep in the poll(), just
|
* don't want to sleep in the poll(), just
|
||||||
* check if any other FDs are also ready
|
* check if any other FDs are also ready
|
||||||
*/
|
*/
|
||||||
|
#if HAVE_SASL
|
||||||
if (priv->saslDecoded)
|
if (priv->saslDecoded)
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
fds[0].events = fds[0].revents = 0;
|
fds[0].events = fds[0].revents = 0;
|
||||||
fds[1].events = fds[1].revents = 0;
|
fds[1].events = fds[1].revents = 0;
|
||||||
@ -10236,8 +10238,10 @@ remoteIOEventLoop(virConnectPtr conn,
|
|||||||
/* If we have existing SASL decoded data, pretend
|
/* If we have existing SASL decoded data, pretend
|
||||||
* the socket became readable so we consume it
|
* the socket became readable so we consume it
|
||||||
*/
|
*/
|
||||||
|
#if HAVE_SASL
|
||||||
if (priv->saslDecoded)
|
if (priv->saslDecoded)
|
||||||
fds[0].revents |= POLLIN;
|
fds[0].revents |= POLLIN;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (fds[1].revents) {
|
if (fds[1].revents) {
|
||||||
ssize_t s;
|
ssize_t s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user