Message ID | 20220713134343.19811-2-cgzones@googlemail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 85e73a22ff01 |
Headers | show |
Series | [1/3] libsepol: break circular include | expand |
diff --git a/libsepol/include/sepol/policydb/util.h b/libsepol/include/sepol/policydb/util.h index ee236a25..db8da213 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 <sepol/policydb/policydb.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/libsepol/src/mls.h b/libsepol/src/mls.h index eb4a1cb8..befd12c5 100644 --- a/libsepol/src/mls.h +++ b/libsepol/src/mls.h @@ -25,6 +25,7 @@ #include "policydb_internal.h" #include <sepol/policydb/context.h> +#include <sepol/policydb/policydb.h> #include "handle.h" extern int mls_from_string(sepol_handle_t * handle,
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 <cgzones@googlemail.com> --- libsepol/include/sepol/policydb/util.h | 2 ++ libsepol/src/mls.h | 1 + 2 files changed, 3 insertions(+)