diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-10 19:44:06 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-10 19:55:49 +0200 |
commit | b28ce7c6dbe341d6f5769d31014ab8411257db7d (patch) | |
tree | 7a5b73677c7f47093ab78e9e82ecab7f3790872c /src/shared/efivars.c | |
parent | 9df49b33583e8a7d0a252bc5bd532fd2448ef0c8 (diff) |
shared: efivars - fix compile on non-EFI systems
systemctl and logind were unconditionally using functions that were not compiled
on non-EFI systems. Add stubs returning -EOPNOTSUPP to fix compile again.
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r-- | src/shared/efivars.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c index 2a925f3970..d34d977b9a 100644 --- a/src/shared/efivars.c +++ b/src/shared/efivars.c @@ -447,16 +447,6 @@ static uint16_t *tilt_slashes(uint16_t *s) { return s; } -char *efi_tilt_backslashes(char *s) { - char *p; - - for (p = s; *p; p++) - if (*p == '\\') - *p = '/'; - - return s; -} - int efi_add_boot_option(uint16_t id, const char *title, uint32_t part, uint64_t pstart, uint64_t psize, sd_id128_t part_uuid, const char *path) { @@ -687,3 +677,13 @@ int efi_loader_get_device_part_uuid(sd_id128_t *u) { } #endif + +char *efi_tilt_backslashes(char *s) { + char *p; + + for (p = s; *p; p++) + if (*p == '\\') + *p = '/'; + + return s; +} |