]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnuma: Check for numa_bitmask_isbitset presence
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Jun 2014 12:39:01 +0000 (14:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Jun 2014 14:06:51 +0000 (16:06 +0200)
commit9e0cbcd8887edeefa45c2151fa897146ed6d823d
treefcfc053d7a7368999af565fff3abaa9dbe5d4283
parent1919e355477b6211cb32a194a4aa895f0a5e4b06
virnuma: Check for numa_bitmask_isbitset presence

On some systems, libnuma can be present but it's so ancient that
it misses some symbols that virNumaGetDistances() needs. To be
more precise: numa_bitmask_isbitset() and numa_nodes_ptr are the
symbols in question. Fortunately, they were both introduced in
the same release so it's sufficient for us to check for only one
of them. And the winner is numa_bitmask_isbitset().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
m4/virt-numactl.m4
src/util/virnuma.c