chiark / gitweb /
build-sys: make EFI support build-time optional
[elogind.git] / src / core / manager.c
index bd49892cd46a9b08e61b91be3f7d219fb61c5d7e..28f169daabed42fa4ac54fecc0a7b800d396d330 100644 (file)
@@ -309,7 +309,9 @@ int manager_new(SystemdRunningAs running_as, Manager **_m) {
 
         dual_timestamp_get(&m->userspace_timestamp);
         dual_timestamp_from_monotonic(&m->kernel_timestamp, 0);
+#ifdef ENABLE_EFI
         efi_get_boot_timestamps(&m->userspace_timestamp, &m->firmware_timestamp, &m->loader_timestamp);
+#endif
 
         m->running_as = running_as;
         m->name_data_slot = m->conn_data_slot = m->subscribed_data_slot = -1;