mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 01:08:19 +00:00
trivial: Fix a build failure on aarch64
It seems cpuid.h isn't available everywhere, which make sense in retrospect.
This commit is contained in:
parent
9bc9debd98
commit
bd44432240
@ -19,7 +19,9 @@
|
||||
#include <shlwapi.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CPUID_H
|
||||
#include <cpuid.h>
|
||||
#endif
|
||||
|
||||
#include <archive_entry.h>
|
||||
#include <archive.h>
|
||||
@ -2047,6 +2049,7 @@ fu_common_kernel_locked_down (void)
|
||||
gboolean
|
||||
fu_common_is_cpu_intel (void)
|
||||
{
|
||||
#ifdef HAVE_CPUID_H
|
||||
guint eax = 0;
|
||||
guint ebx = 0;
|
||||
guint ecx = 0;
|
||||
@ -2060,5 +2063,6 @@ fu_common_is_cpu_intel (void)
|
||||
ecx == signature_INTEL_ecx) {
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -258,6 +258,9 @@ endif
|
||||
if cc.has_header('fnmatch.h')
|
||||
conf.set('HAVE_FNMATCH_H', '1')
|
||||
endif
|
||||
if cc.has_header('cpuid.h')
|
||||
conf.set('HAVE_CPUID_H', '1')
|
||||
endif
|
||||
if cc.has_function('getuid')
|
||||
conf.set('HAVE_GETUID', '1')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user