]> 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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Sep 2020 15:21:26 +0000 (17:21 +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.

(cherry picked from commit 97207ac85cb8f8cba9459694255ff0396f020279)

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"