[network-manager-applet] Fix build with SELinux disabled
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] Fix build with SELinux disabled
- Date: Sat, 25 Mar 2017 14:10:09 +0000 (UTC)
commit 8cd1015a318254ed62da5d765c2a9685a0064557
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Mar 25 14:08:42 2017 +0000
Fix build with SELinux disabled
We always define the `WITH_SELINUX` pre-processor symbol inside
config.h, so we cannot use `ifdef`.
src/connection-editor/nm-connection-editor.c | 4 ++--
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 ca74d12..be211f2 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";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]