]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix compilation error when SASL support is disabled
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Tue, 5 Jul 2011 15:30:09 +0000 (17:30 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 6 Jul 2011 06:41:17 +0000 (08:41 +0200)
This patch adds #if HAVE_SASL where needed in libvirtd.h

daemon/libvirtd.h

index 6c604fc1fb9da7cd1f5dc07bbdb5c9f5f75a6bb4..8e1843c1819185dae01c724ad3b293d7714c7eb9 100644 (file)
@@ -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;