X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fselinux-util.c;h=026ae5a9e85b2f8e793f80e3a05fbf939d8134ec;hp=4310a975391d89468a6f5282eeab7e5cad9243cc;hb=ea6c2dd1f819c3d481fc590849809aeb552c1d48;hpb=cad45ba11ec3572296361f53f5852ffb97a97fa3 diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c index 4310a9753..026ae5a9e 100644 --- a/src/shared/selinux-util.c +++ b/src/shared/selinux-util.c @@ -19,10 +19,12 @@ along with systemd; If not, see . ***/ -#include - #include "selinux-util.h" +#ifdef HAVE_SELINUX + +#include + static int use_selinux_cached = -1; bool use_selinux(void) { @@ -36,3 +38,14 @@ bool use_selinux(void) { void retest_selinux(void) { use_selinux_cached = -1; } + +#else + +bool use_selinux(void) { + return false; +} + +void retest_selinux(void) { +} + +#endif