]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login/logind: Include sys/stat.h for struct stat usage
authorIkey Doherty <ikey.doherty@lispysnake.com>
Fri, 28 Aug 2020 13:23:44 +0000 (14:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2020 15:44:39 +0000 (17:44 +0200)
We need to include `<sys/stat.h>` for usage of the `struct stat` in
the Manager struct, much as we already include `<stdbool.h>` for C99
booleans.

This helps alleviate another minor build failure on non-glibc systems.

src/login/logind.h

index e64ecce8e2810b8380465d7b2b2cb96000c0a89c..272fcfecd4c4df48b304a89a0e631ec188f74f72 100644 (file)
@@ -2,6 +2,7 @@
 #pragma once
 
 #include <stdbool.h>
+#include <sys/stat.h>
 
 #include "sd-bus.h"
 #include "sd-device.h"