X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fboot-timestamps.c;h=d656685774b78e679cb94d978842d383bdf2c7c8;hb=6afc95b73605833e6e966af1c466b5c08feb953f;hp=944996582ee4ca6a410c35464e05a15399e28beb;hpb=c51d84dc09476d9c06b8aac726220bf3c7d62e8d;p=elogind.git diff --git a/src/shared/boot-timestamps.c b/src/shared/boot-timestamps.c index 944996582..d65668577 100644 --- a/src/shared/boot-timestamps.c +++ b/src/shared/boot-timestamps.c @@ -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; }