efi: fix Undefined reference efi_loader_get_boot_usec when EFI support is disabled

This commit is contained in:
Cristian Rodríguez
2014-02-11 09:54:49 -03:00
committed by Lennart Poettering
parent 89f7c8465c
commit 70d9b9fc0a

View File

@@ -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;
}