virnuma: Assume numa_bitmask_isbitset() exists

This function was introduced in the 2.0.6 release which happened
in December 2010. I think it is safe to assume that all libnuma
we deal with have the function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Michal Privoznik
2020-09-11 13:10:25 +02:00
parent b1f10ed031
commit a2df82b621
2 changed files with 4 additions and 7 deletions

View File

@@ -1239,13 +1239,10 @@ else
intl_dep = dependency('', required: false)
endif
numactl_version = '2.0.6'
numactl_dep = cc.find_library('numa', required: get_option('numactl'))
if numactl_dep.found()
conf.set('WITH_NUMACTL', 1)
if cc.has_function('numa_bitmask_isbitset', dependencies: [ numactl_dep ])
conf.set('WITH_NUMA_BITMASK_ISBITSET', 1)
endif
endif
openwsman_version = '2.2.3'