* tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out.
(main) [!WITH_XEN]: #ifdef-out the body.
Committer: Jim Meyering <meyering@redhat.com>
Author: Guido Guenther <agx@sigxcpu.org>
+Thu Jan 31 20:12:40 CET 2008 Guido Guenther <agx@sigxcpu.org>
+
+ Avoid compilation failure when building --without-xen.
+ * tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out.
+ (main) [!WITH_XEN]: #ifdef-out the body.
+
Wed Jan 30 20:49:34 CET 2008 Jim Meyering <meyering@redhat.com>
Avoid virsh leaks due to missing virDomainFree(dom) calls
/* nada */
}
-#ifdef __linux__
+#if __linux__ && WITH_XEN
static int testDevice(const char *path, int expect)
{
int actual = xenLinuxDomainDeviceID(NULL, 1, path);
main(void)
{
int ret = 0;
-#ifdef __linux__
+#if __linux__ && WITH_XEN
/* Some of our tests delibrately test failure cases, so
* register a handler to stop error messages cluttering
* up display