diff --git a/lib/symbols/sp-kernel-symbol.c b/lib/symbols/sp-kernel-symbol.c index 8eb80876..14e026f6 100644 --- a/lib/symbols/sp-kernel-symbol.c +++ b/lib/symbols/sp-kernel-symbol.c @@ -18,8 +18,13 @@ #define G_LOG_DOMAIN "sp-kernel-symbol" +#include "config.h" + #include -#include + +#ifdef ENABLE_POLKIT +# include +#endif #include "sp-kallsyms.h" @@ -87,6 +92,7 @@ type_is_ignored (guint8 type) static gboolean authorize_proxy (GDBusConnection *conn) { +#ifdef ENABLE_POLKIT PolkitSubject *subject = NULL; GPermission *permission = NULL; const gchar *name; @@ -113,6 +119,7 @@ authorize_proxy (GDBusConnection *conn) failure: g_clear_object (&subject); g_clear_object (&permission); +#endif return FALSE; }