84b277
From d19e3171725a0afd00c094e8d2b9012309b91f21 Mon Sep 17 00:00:00 2001
84b277
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crrodriguez@opensuse.org>
84b277
Date: Tue, 11 Feb 2014 09:54:49 -0300
84b277
Subject: [PATCH] efi: fix Undefined reference efi_loader_get_boot_usec when
84b277
 EFI support is disabled
84b277
84b277
(cherry-picked from 70d9b9fc0a4fa1698ff00e364c61bb875244efa1)
84b277
84b277
Resolves: #1147524
84b277
---
84b277
 src/shared/boot-timestamps.c | 2 ++
84b277
 1 file changed, 2 insertions(+)
84b277
84b277
diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c
84b277
index 9449965..d656685 100644
84b277
--- a/src/shared/boot-timestamps.c
84b277
+++ b/src/shared/boot-timestamps.c
84b277
@@ -40,8 +40,10 @@ int boot_timestamps(const dual_timestamp *n, dual_timestamp *firmware, dual_time
84b277
 
84b277
         r = acpi_get_boot_usec(&x, &y);
84b277
         if (r < 0) {
84b277
+#ifdef ENABLE_EFI
84b277
                 r = efi_loader_get_boot_usec(&x, &y);
84b277
                 if (r < 0)
84b277
+#endif
84b277
                         return r;
84b277
         }
84b277