mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
shared: fix build on !x86
This commit is contained in:
parent
eb75d0ed05
commit
3c475ce44e
@ -29,6 +29,8 @@
|
||||
|
||||
/* Returns a short identifier for the various VM implementations */
|
||||
int detect_vm(const char **id) {
|
||||
_cleanup_free_ char *cpuinfo_contents = NULL;
|
||||
int r;
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
@ -67,8 +69,6 @@ int detect_vm(const char **id) {
|
||||
const char *j, *k;
|
||||
bool hypervisor;
|
||||
_cleanup_free_ char *hvtype = NULL;
|
||||
_cleanup_free_ char *cpuinfo_contents = NULL;
|
||||
int r;
|
||||
|
||||
/* Try high-level hypervisor sysfs file first:
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user