mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 04:23:21 +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>
|
#include <shlwapi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_CPUID_H
|
||||||
#include <cpuid.h>
|
#include <cpuid.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <archive_entry.h>
|
#include <archive_entry.h>
|
||||||
#include <archive.h>
|
#include <archive.h>
|
||||||
@ -2047,6 +2049,7 @@ fu_common_kernel_locked_down (void)
|
|||||||
gboolean
|
gboolean
|
||||||
fu_common_is_cpu_intel (void)
|
fu_common_is_cpu_intel (void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_CPUID_H
|
||||||
guint eax = 0;
|
guint eax = 0;
|
||||||
guint ebx = 0;
|
guint ebx = 0;
|
||||||
guint ecx = 0;
|
guint ecx = 0;
|
||||||
@ -2060,5 +2063,6 @@ fu_common_is_cpu_intel (void)
|
|||||||
ecx == signature_INTEL_ecx) {
|
ecx == signature_INTEL_ecx) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -258,6 +258,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')
|
||||||
|
conf.set('HAVE_CPUID_H', '1')
|
||||||
|
endif
|
||||||
if cc.has_function('getuid')
|
if cc.has_function('getuid')
|
||||||
conf.set('HAVE_GETUID', '1')
|
conf.set('HAVE_GETUID', '1')
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user