mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
* src/xml.c: fix build when configured without Xen
Daniel
This commit is contained in:
parent
211a20aefb
commit
2718513226
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user