mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Disable Xen specific functions if Xen driver is disabled
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
@@ -10,6 +12,8 @@
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
|
||||
#if WITH_XEN
|
||||
|
||||
#include "xml.h"
|
||||
#include "testutils.h"
|
||||
#include "internal.h"
|
||||
@@ -354,3 +358,9 @@ main(int argc, char **argv)
|
||||
|
||||
exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#else /* WITH_XEN */
|
||||
|
||||
int main (void) { exit (77); /* means 'test skipped' for automake */ }
|
||||
|
||||
#endif /* ! WITH_XEN */
|
||||
|
||||
Reference in New Issue
Block a user