aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-06-22 10:26:12 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-06-22 10:26:12 +0200
commitacf36f2ae0a10f8aeee7a1f8495d3febfba52456 (patch)
tree2cb992de5964bbfe80d0471c26cb76ff9281df49 /src
parentfd0bed1df9e306d8f0d2498afb8df316ca8b3f9e (diff)
build: only define WITH_POLKIT if enabled
Diffstat (limited to 'src')
-rw-r--r--src/mm-auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-auth.c b/src/mm-auth.c
index 939c0af5..9b1beea9 100644
--- a/src/mm-auth.c
+++ b/src/mm-auth.c
@@ -21,8 +21,8 @@
#include "mm-auth.h"
#include "mm-auth-provider.h"
-#ifdef WITH_POLKIT
-#include "mm-auth-provider-polkit.h"
+#if defined WITH_POLKIT
+# include "mm-auth-provider-polkit.h"
#endif
static MMAuthProvider *authp = NULL;
@@ -31,7 +31,7 @@ MMAuthProvider *
mm_auth_get_provider (void)
{
if (!authp) {
-#if WITH_POLKIT
+#if defined WITH_POLKIT
authp = mm_auth_provider_polkit_new ();
#else
authp = mm_auth_provider_new ();