diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-04-18 14:23:57 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-04-24 10:41:52 +0100 |
commit | c9e32eca5e513999cd3bd069b11d6a30e2c6c9a9 (patch) | |
tree | 28274b771141a7448d18094e5f9aeb7754eec3aa | |
parent | ac4f73acab271972f59f54e1f60790aac4d7a2f0 (diff) | |
download | libguestfs-c9e32eca5e513999cd3bd069b11d6a30e2c6c9a9.tar.gz libguestfs-c9e32eca5e513999cd3bd069b11d6a30e2c6c9a9.tar.xz libguestfs-c9e32eca5e513999cd3bd069b11d6a30e2c6c9a9.zip |
Check library still compiles without libvirt.
(cherry picked from commit 5d6a323b9358bb01233681b784fa67414a5d2c6d)
-rw-r--r-- | df/domains.c | 2 | ||||
-rw-r--r-- | src/virt.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/df/domains.c b/df/domains.c index fd8525aa..3993bbfa 100644 --- a/df/domains.c +++ b/df/domains.c @@ -30,7 +30,9 @@ #include "progname.h" +#if defined(HAVE_LIBVIRT) && defined(HAVE_LIBXML2) #define GUESTFS_PRIVATE_FOR_EACH_DISK 1 +#endif #include "guestfs.h" #include "options.h" @@ -33,7 +33,9 @@ #include <libxml/tree.h> #endif +#if defined(HAVE_LIBVIRT) && defined(HAVE_LIBXML2) #define GUESTFS_PRIVATE_FOR_EACH_DISK 1 +#endif #include "guestfs.h" #include "guestfs-internal.h" |