]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "systemctl: fix compilation w/o logind"
authorDimitri John Ledkov <xnox@ubuntu.com>
Mon, 10 Sep 2018 18:53:59 +0000 (19:53 +0100)
committerDimitri John Ledkov <xnox@ubuntu.com>
Mon, 10 Sep 2018 18:53:59 +0000 (19:53 +0100)
This reverts commit 807690fb7f7e4998e2bb67f32026ab9f1c7b8077.

src/systemctl/systemctl.c

index 9ddd40a48e310d5793c832b8d623716f68704aa8..ff204cd789ce2d05ce7c9d5a8b26a29f3cfe3dad 100644 (file)
@@ -8509,8 +8509,8 @@ static int halt_now(enum action a) {
         }
 }
 
-#if ENABLE_LOGIND
 static int logind_schedule_shutdown(void) {
+
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
         char date[FORMAT_TIMESTAMP_MAX];
         const char *action;
@@ -8563,7 +8563,6 @@ static int logind_schedule_shutdown(void) {
                 log_info("Shutdown scheduled for %s, use 'shutdown -c' to cancel.", format_timestamp(date, sizeof(date), arg_when));
         return 0;
 }
-#endif
 
 static int halt_main(void) {
         int r;