summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-03-25 14:08:42 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-03-25 14:08:42 +0000
commit8cd1015a318254ed62da5d765c2a9685a0064557 (patch)
treeeb514a5a09d6998ed30141f92058f5e734e61058
parented12424ab322de481c1215f44393e7c77084f40d (diff)
downloadnetwork-manager-applet-8cd1015a318254ed62da5d765c2a9685a0064557.tar.gz
Fix build with SELinux disabled
We always define the `WITH_SELINUX` pre-processor symbol inside config.h, so we cannot use `ifdef`.
-rw-r--r--src/connection-editor/nm-connection-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index ca74d12a..be211f2c 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -31,7 +31,7 @@
#include <errno.h>
#include <gdk/gdkx.h>
-#ifdef WITH_SELINUX
+#if WITH_SELINUX
#include <selinux/selinux.h>
#endif
@@ -183,7 +183,7 @@ update_sensitivity (NMConnectionEditor *editor)
}
}
-#ifdef WITH_SELINUX
+#if WITH_SELINUX
/* This is what the files in ~/.cert would get. */
static const char certcon[] = "unconfined_u:object_r:home_cert_t:s0";