summaryrefslogtreecommitdiff
path: root/src/shared/efivars.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-04-10 19:44:06 +0200
committerTom Gundersen <teg@jklm.no>2015-04-10 19:55:49 +0200
commitb28ce7c6dbe341d6f5769d31014ab8411257db7d (patch)
tree7a5b73677c7f47093ab78e9e82ecab7f3790872c /src/shared/efivars.c
parent9df49b33583e8a7d0a252bc5bd532fd2448ef0c8 (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.c20
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;
+}