chiark / gitweb /
build-sys: fix built with --disable-logind
[elogind.git] / src / systemctl / systemctl.c
index 66f4113eb223c91c7e05848778f56245f3e92ba7..58b6035c690c68d8748fc41b9b883adf335b8844 100644 (file)
@@ -171,6 +171,7 @@ static void ask_password_agent_open_if_enabled(void) {
         ask_password_agent_open();
 }
 
+#ifdef HAVE_LOGIND
 static void polkit_agent_open_if_enabled(void) {
 
         /* Open the polkit agent as a child process if necessary */
@@ -183,6 +184,7 @@ static void polkit_agent_open_if_enabled(void) {
 
         polkit_agent_open();
 }
+#endif
 
 static const char *ansi_highlight_red(bool b) {