* src/xml.c: fix build when configured without Xen

Daniel
This commit is contained in:
Daniel Veillard 2007-10-26 13:41:18 +00:00
parent 211a20aefb
commit 2718513226
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -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;