mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
efi: fix Undefined reference efi_loader_get_boot_usec when EFI support is disabled
This commit is contained in:
committed by
Lennart Poettering
parent
89f7c8465c
commit
70d9b9fc0a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user