examples/vm_power_manager: fix build with libvirt < 1.0
authorYong Liu <yong.liu@intel.com>
Mon, 7 Dec 2015 07:24:17 +0000 (15:24 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 23:09:43 +0000 (00:09 +0100)
commitf7f14fe390cae1705fef8372e1df4ff61ce24fd2
treea355e71c794dab914231fda9f9b8c7ae91f95441
parent3f3d601071a7148a5fb3b4a843716fff7f2fdc1c
examples/vm_power_manager: fix build with libvirt < 1.0

virNodeGetCPUMap introduced in libvirt 1.0. In some linux distributions
like Ubuntu12/14 and Fedora18, libvirt version is older than 1.0. So this
sample will not build pass.

Replace "virNodeGetCPUMap" with another libvirt API "virNodeGetInfo".

Signed-off-by: Marvin Liu <yong.liu@intel.com>
examples/vm_power_manager/channel_manager.c