summaryrefslogtreecommitdiff
path: root/src/bios_dev_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bios_dev_name.c')
-rw-r--r--src/bios_dev_name.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bios_dev_name.c b/src/bios_dev_name.c
index ae994ab..1abc6d8 100644
--- a/src/bios_dev_name.c
+++ b/src/bios_dev_name.c
@@ -125,6 +125,8 @@ parse_opts(int argc, char **argv)
opts.prefix = "em";
}
+#if defined(__x86_64__) || defined(__i386__)
+
static u_int32_t
cpuid (u_int32_t eax, u_int32_t ecx)
{
@@ -152,6 +154,14 @@ running_in_virtual_machine (void)
return 0;
}
+#else /* ! __x86_64__ */
+static int
+running_in_virtual_machine (void)
+{
+ return 1;
+}
+#endif
+
static int
running_as_root(void)
{