summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/boot-timestamps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c
index 944996582e..d656685774 100644
--- a/src/shared/boot-timestamps.c
+++ b/src/shared/boot-timestamps.c
@@ -40,8 +40,10 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time
r = acpi_get_boot_usec(&x, &y);
if (r < 0) {
+#ifdef ENABLE_EFI
r = efi_loader_get_boot_usec(&x, &y);
if (r < 0)
+#endif
return r;
}