chiark / gitweb /
logind: Listen to WMI hotkeys to catch SW_DOCK state/events
[elogind.git] / src / login / logind-action.c
index 20c1c89eee7e1128e505ded71a49af8211d1b68f..f635fb1b632039a459d4f0de245279a7d6e03faa 100644 (file)
@@ -27,6 +27,9 @@
 #include "bus-util.h"
 #include "bus-error.h"
 #include "logind-action.h"
+#include "formats-util.h"
+#include "process-util.h"
+#include "terminal-util.h"
 
 int manager_handle_action(
                 Manager *m,
@@ -112,7 +115,7 @@ int manager_handle_action(
 
         if (!supported) {
                 log_warning("Requested operation not supported, ignoring.");
-                return -ENOTSUP;
+                return -EOPNOTSUPP;
         }
 
         if (m->action_what) {