From: Colin Walters Date: Tue, 2 Oct 2012 22:15:14 +0000 (-0400) Subject: build-sys: fix !HAVE_SELINUX case X-Git-Tag: v194~7 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=inline;h=0b6018f3d9d437fdbad8f39dca2409d63a5df854;p=elogind.git build-sys: fix !HAVE_SELINUX case --- diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c index 4310a9753..ff3375607 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,5 @@ bool use_selinux(void) { void retest_selinux(void) { use_selinux_cached = -1; } + +#endif