aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>2011-07-05 17:30:09 +0200
committerDoug Goldstein <cardoe@cardoe.com>2011-07-21 10:20:30 -0500
commit8cdfb6ba896c31a8087bf9519cdccb0f63f63074 (patch)
tree5165e232edb0d493d9c87853414140acedb05ab4
parentRelease of libvirt-0.9.3 (diff)
downloadlibvirt-8cdfb6ba896c31a8087bf9519cdccb0f63f63074.tar.gz
libvirt-8cdfb6ba896c31a8087bf9519cdccb0f63f63074.tar.bz2
libvirt-8cdfb6ba896c31a8087bf9519cdccb0f63f63074.zip
Fix compilation error when SASL support is disabled
This patch adds #if HAVE_SASL where needed in libvirtd.h
-rw-r--r--daemon/libvirtd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/libvirtd.h b/daemon/libvirtd.h
index 6c604fc1f..8e1843c18 100644
--- a/daemon/libvirtd.h
+++ b/daemon/libvirtd.h
@@ -38,7 +38,9 @@
# include "logging.h"
# include "threads.h"
# include "network.h"
-# include "virnetsaslcontext.h"
+# if HAVE_SASL
+# include "virnetsaslcontext.h"
+# endif
# include "virnetserverprogram.h"
# if WITH_DTRACE
@@ -70,7 +72,9 @@ struct daemonClientPrivate {
int domainEventCallbackID[VIR_DOMAIN_EVENT_ID_LAST];
+# if HAVE_SASL
virNetSASLSessionPtr sasl;
+# endif
/* This is only valid if a remote open call has been made on this
* connection, otherwise it will be NULL. Also if remote close is
@@ -81,7 +85,9 @@ struct daemonClientPrivate {
daemonClientStreamPtr streams;
};
+# if HAVE_SASL
extern virNetSASLContextPtr saslCtxt;
+# endif
extern virNetServerProgramPtr remoteProgram;
extern virNetServerProgramPtr qemuProgram;