mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 10:18:33 +00:00
trivial: Actually check if __get_cpuid_count exists before using cpuid.h
This commit is contained in:
parent
9619514508
commit
f99dc76cfe
@ -290,7 +290,9 @@ endif
|
|||||||
if cc.has_header('fnmatch.h')
|
if cc.has_header('fnmatch.h')
|
||||||
conf.set('HAVE_FNMATCH_H', '1')
|
conf.set('HAVE_FNMATCH_H', '1')
|
||||||
endif
|
endif
|
||||||
if cc.has_header('cpuid.h') and (host_cpu == 'x86' or host_cpu == 'x86_64')
|
if cc.has_header('cpuid.h') and \
|
||||||
|
cc.has_header_symbol('cpuid.h', '__get_cpuid_count') and \
|
||||||
|
(host_cpu == 'x86' or host_cpu == 'x86_64')
|
||||||
conf.set('HAVE_CPUID_H', '1')
|
conf.set('HAVE_CPUID_H', '1')
|
||||||
else
|
else
|
||||||
if get_option('plugin_msr')
|
if get_option('plugin_msr')
|
||||||
|
Loading…
Reference in New Issue
Block a user