mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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 <meyering@redhat.com> Author: Guido Guenther <agx@sigxcpu.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user