]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add sys/stat.h for S_IFDIR
authorKhem Raj <raj.khem@gmail.com>
Thu, 19 May 2022 18:01:04 +0000 (11:01 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 May 2022 05:54:02 +0000 (14:54 +0900)
Fixes
../git/src/shared/mkdir-label.c:13:61: error: use of undeclared identifier 'S_IFDIR'
        r = mac_selinux_create_file_prepare_at(dirfd, path, S_IFDIR);

Signed-off-by: Khem Raj <raj.khem@gmail.com>
src/shared/mkdir-label.c

index d36a6466d774aa7aee2e849c5c8b5e6e8c6b1e27..5b1ac5d1e0168198b4503af7bdffaa576503044e 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <sys/stat.h>
+
 #include "mkdir-label.h"
 #include "selinux-util.h"
 #include "smack-util.h"