From: Jim Meyering Date: Thu, 31 Jan 2008 21:49:47 +0000 (+0000) Subject: Avoid compilation failure when building --without-xen. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b5433aaa6f784e8bddf69a04e96d8fc63d89e174;p=libvirt.git Avoid compilation failure when building --without-xen. * tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out. (main) [!WITH_XEN]: #ifdef-out the body. Committer: Jim Meyering Author: Guido Guenther --- diff --git a/ChangeLog b/ChangeLog index 27e508972d..1c46da7d31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 31 20:12:40 CET 2008 Guido Guenther + + 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 Avoid virsh leaks due to missing virDomainFree(dom) calls diff --git a/tests/statstest.c b/tests/statstest.c index 4c19833e02..6213da8e13 100644 --- a/tests/statstest.c +++ b/tests/statstest.c @@ -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