chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / login / logind-action.c
index 0844df20a9762ec3b0197c9346dec28d54617989..281e3c756913adb9c194cfe6523351df0af905b3 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <unistd.h>
 
-#include "sd-messages.h"
 #include "conf-parser.h"
 #include "special.h"
 #include "sleep-config.h"
@@ -113,7 +112,7 @@ int manager_handle_action(
 
         if (!supported) {
                 log_warning("Requested operation not supported, ignoring.");
-                return -ENOTSUP;
+                return -EOPNOTSUPP;
         }
 
         if (m->action_what) {