1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

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
Notes: Lennart Poettering 2014-02-13 02:20:00 +01:00
Backport: buildfix

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