From 85e73a22ff0165f3bb577ca671d5b2ae21f6b282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 13 Jul 2022 15:43:42 +0200 Subject: [PATCH] libsepol: include necessary headers in headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-type: text/plain Include policydb header file required for typedef policydb_t. This is for example helpful when working with an IDE, which needs to resolve those symbols. Signed-off-by: Christian Göttsche Acked-by: James Carter --- libsepol/include/sepol/policydb/util.h | 2 ++ libsepol/src/mls.h | 1 + 2 files changed, 3 insertions(+) diff --git a/libsepol/include/sepol/policydb/util.h b/libsepol/include/sepol/policydb/util.h index ee236a25fafe..db8da213f89f 100644 --- a/libsepol/include/sepol/policydb/util.h +++ b/libsepol/include/sepol/policydb/util.h @@ -23,6 +23,8 @@ #ifndef __SEPOL_UTIL_H__ #define __SEPOL_UTIL_H__ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/libsepol/src/mls.h b/libsepol/src/mls.h index eb4a1cb8b522..befd12c5ed05 100644 --- a/libsepol/src/mls.h +++ b/libsepol/src/mls.h @@ -25,6 +25,7 @@ #include "policydb_internal.h" #include +#include #include "handle.h" extern int mls_from_string(sepol_handle_t * handle, -- 2.38.1