]> xenbits.xensource.com Git - libvirt.git/commitdiff
Avoid compilation failure when building --without-xen.
authorJim Meyering <meyering@redhat.com>
Thu, 31 Jan 2008 21:49:47 +0000 (21:49 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 31 Jan 2008 21:49:47 +0000 (21:49 +0000)
* 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>

ChangeLog
tests/statstest.c

index 27e508972db55342d1e07d539601082d1476ce29..1c46da7d31d6c396581cee66aa203bb2ca028bc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 4c19833e024dab0d9ba6ccaac5fc0f2f29aa1457..6213da8e13b9045c6fe9b0e3401c30952a28f191 100644 (file)
@@ -12,7 +12,7 @@ static void testQuietError(void *userData ATTRIBUTE_UNUSED, virErrorPtr error AT
     /* nada */
 }
 
-#ifdef __linux__
+#if __linux__ && WITH_XEN
 static int testDevice(const char *path, int expect)
 {
     int actual = xenLinuxDomainDeviceID(NULL, 1, path);
@@ -31,7 +31,7 @@ int
 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