summaryrefslogtreecommitdiffstats
path: root/mount/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount/mount.c')
-rw-r--r--mount/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/mount.c b/mount/mount.c
index f48f9d408..cc5b88ae5 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -1561,7 +1561,7 @@ mount_retry:
out:
-#ifdef HAVE_LIBSELINUX
+#if defined(HAVE_LIBSELINUX) && defined(HAVE_SECURITY_GET_INITIAL_CONTEXT)
if (res != EX_FAIL && verbose && is_selinux_enabled() > 0) {
security_context_t raw = NULL, def = NULL;