From 4b731a5e2547b5292f9a774b849e14c0cf7b3955 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 21 Jan 2022 15:17:37 -0800 Subject: [PATCH] Add sys/stat.h for S_IFDIR ../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); Upstream-Status: Pending Signed-off-by: Khem Raj --- src/shared/mkdir-label.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c index d36a6466d7..63b764cd83 100644 --- a/src/shared/mkdir-label.c +++ b/src/shared/mkdir-label.c @@ -4,6 +4,7 @@ #include "selinux-util.h" #include "smack-util.h" #include "user-util.h" +#include int mkdirat_label(int dirfd, const char *path, mode_t mode) { int r;