]> xenbits.xensource.com Git - libvirt.git/commit
virhostcpu: Expose virHostCPUGetOnline on non-Linux
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 14:16:43 +0000 (16:16 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 15:34:59 +0000 (17:34 +0200)
commit9c5ac84d76e52b84cf488a69d9e7d10e8eb8330d
tree36e44e26d2a458ca8f23f86639f96f3001c3f3f2
parent75f30a60e6c33cd70dd1532d9da5a3a4963ce2d3
virhostcpu: Expose virHostCPUGetOnline on non-Linux

Previously, this function must've been called only on Linux in order
to fail gracefully.  That lead to #ifdef mess in callers, so the
function was redesigned so it failed gracefully on non-existing
files.  However that commit forgot to define the function outside the
__linux__ ifdef, it broke non-Linux builds.

Caused by c67e04e25fa58104e0fae41f5b874a8067557073.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virhostcpu.c