]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/xml.c: fix build when configured without Xen
authorDaniel Veillard <veillard@redhat.com>
Fri, 26 Oct 2007 13:41:18 +0000 (13:41 +0000)
committerDaniel Veillard <veillard@redhat.com>
Fri, 26 Oct 2007 13:41:18 +0000 (13:41 +0000)
Daniel

ChangeLog
src/xml.c

index 954530163fa5bd740ebc307b7ce7a6a0e0600dde..15d6a7f0d23b1cf6bdcd9b967be2279731c41526 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 26 15:40:44 CEST 2007 Daniel Veillard <veillard@redhat.com>
+
+       * src/xml.c: fix build when configured without Xen
+
 Wed Oct 24 16:21:02 CEST 2007 Daniel Veillard <veillard@redhat.com>
 
        * src/xml.c: applied patch from Jim Meyering fixing parseNumber
index 06d2e0b37693d0cce21dc87f1a2873a3af529c6a..e87a6e687a342d019d51a7390b77fdb47c26045c 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -1585,7 +1585,11 @@ virDomainParseXMLDesc(virConnectPtr conn, const char *xmldesc, char **name,
 
     str = virXPathString("string(/domain/vcpu/@cpuset)", ctxt);
     if (str != NULL) {
+#ifdef WITH_XEN
         int maxcpu = xenNbCpus(conn);
+#else
+        int maxcpu = 64;
+#endif
         char *cpuset = NULL;
         char *ranges = NULL;
         const char *cur = str;