Disable Xen specific functions if Xen driver is disabled

This commit is contained in:
Daniel P. Berrange
2007-11-30 22:51:54 +00:00
parent c3c80a183e
commit 6d3f1d516e
4 changed files with 23 additions and 14 deletions

View File

@@ -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 */