summaryrefslogtreecommitdiffstats
path: root/src/shared/efivars.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-17 10:25:42 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-17 10:25:42 +0100
commit5caf49360b55b5a877cda05ea45f1c0047b81a7b (patch)
treeff024eaeabb675e98252fbe321760a2433e67f64 /src/shared/efivars.h
parentMerge pull request #7886 from gdamjan/fix-ptmx (diff)
downloadsystemd-5caf49360b55b5a877cda05ea45f1c0047b81a7b.tar.xz
systemd-5caf49360b55b5a877cda05ea45f1c0047b81a7b.zip
efivars: include errno.h when EFI support is disabled (#7900)
Fixes #7898.
Diffstat (limited to '')
-rw-r--r--src/shared/efivars.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/efivars.h b/src/shared/efivars.h
index 9a4880de7d..5b5951321c 100644
--- a/src/shared/efivars.h
+++ b/src/shared/efivars.h
@@ -20,6 +20,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#if ! ENABLE_EFI
+#include <errno.h>
+#endif
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>