diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-04-14 02:58:10 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-04-17 11:20:04 +0200 |
commit | 528fcf8d1d06f18aed6fd8c90a1ab0530b4f4ba3 (patch) | |
tree | 83d94e730481122617dd6e0e97afef06a6a75179 /src/shared/bootspec.h | |
parent | ac9b17271fbe2a840796739c455183e3d89d9e21 (diff) | |
download | systemd-528fcf8d1d06f18aed6fd8c90a1ab0530b4f4ba3.tar.gz |
bootspec: fix build when EFI support is disabled
Follow-up for ce4c4f810876b2d6e50041c8bbe089e8a9e2576e.
Diffstat (limited to 'src/shared/bootspec.h')
-rw-r--r-- | src/shared/bootspec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/bootspec.h b/src/shared/bootspec.h index b35eaf1110..c18d89494a 100644 --- a/src/shared/bootspec.h +++ b/src/shared/bootspec.h @@ -71,7 +71,13 @@ static inline BootEntry* boot_config_default_entry(BootConfig *config) { void boot_config_free(BootConfig *config); int boot_entries_load_config(const char *esp_path, const char *xbootldr_path, BootConfig *config); int boot_entries_load_config_auto(const char *override_esp_path, const char *override_xbootldr_path, BootConfig *config); +#if ENABLE_EFI int boot_entries_augment_from_loader(BootConfig *config, bool only_auto); +#else +static inline int boot_entries_augment_from_loader(BootConfig *config, bool only_auto) { + return -EOPNOTSUPP; +} +#endif static inline const char* boot_entry_title(const BootEntry *entry) { return entry->show_title ?: entry->title ?: entry->id; |