summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-10-02 18:15:14 -0400
committerKay Sievers <kay@vrfy.org>2012-10-03 16:00:33 +0200
commit0b6018f3d9d437fdbad8f39dca2409d63a5df854 (patch)
treee8ed667afd5bb890bb10e5ca0c14db7415a7d12c
parent8d789b905dba8aebd30238520b6ad52fb866af95 (diff)
build-sys: fix !HAVE_SELINUX case
-rw-r--r--src/shared/selinux-util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c
index 4310a97539..ff3375607f 100644
--- a/src/shared/selinux-util.c
+++ b/src/shared/selinux-util.c
@@ -19,10 +19,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <selinux/selinux.h>
-
#include "selinux-util.h"
+#ifdef HAVE_SELINUX
+
+#include <selinux/selinux.h>
+
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