summaryrefslogtreecommitdiff
path: root/src/shared/boot-timestamps.c
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2014-02-11 09:54:49 -0300
committerLennart Poettering <lennart@poettering.net>2014-02-11 17:28:13 +0100
commit70d9b9fc0a4fa1698ff00e364c61bb875244efa1 (patch)
tree6d4bd6eaecb2ef939e69460a346609b2e4f42882 /src/shared/boot-timestamps.c
parent89f7c8465cd1ab37347dd0c15920bce31e8225df (diff)
efi: fix Undefined reference efi_loader_get_boot_usec when EFI support is disabled
Diffstat (limited to 'src/shared/boot-timestamps.c')
-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;
}