mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
efi: fix Undefined reference efi_loader_get_boot_usec when EFI support is disabled
This commit is contained in:
parent
89f7c8465c
commit
70d9b9fc0a
Notes:
Lennart Poettering
2014-02-13 02:20:00 +01:00
Backport: buildfix
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user