From: William Roberts <william.c.roberts@xxxxxxxxx> Fix below compilation issue: direct_api.c: In function ‘semanage_direct_commit’: direct_api.c:1466:13: error: implicit declaration of function ‘sepol_policydb_optimize’; did you mean ‘sepol_policydb_to_image’? [-Werror=implicit-function-declaration] retval = sepol_policydb_optimize(out); Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- libsemanage/src/direct_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsemanage/src/direct_api.c b/libsemanage/src/direct_api.c index 1088a0ac6165..92f0a17b0156 100644 --- a/libsemanage/src/direct_api.c +++ b/libsemanage/src/direct_api.c @@ -23,6 +23,7 @@ #include <sepol/handle.h> #include <sepol/cil/cil.h> #include <selinux/selinux.h> +#include <sepol/policydb.h> #include <assert.h> #include <fcntl.h> -- 2.17.1