From ba1261bc02693ac8a7712ade14aab8e22989ba88 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 30 May 2012 22:25:01 +0200 Subject: build-sys: fix built with --disable-logind --- src/systemctl/systemctl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/systemctl') diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 66f4113eb2..58b6035c69 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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) { -- cgit v1.2.3-54-g00ecf