efivars: include errno.h when EFI support is disabled (#7900)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Jan 2018 09:25:42 +0000 (18:25 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Jan 2018 09:25:42 +0000 (20:25 +1100)
Fixes #7898.

src/shared/efivars.h

index 9a4880d..5b59513 100644 (file)
@@ -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>