chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / path / path.c
index 2f0148f074b12167a0ddefe0dcfdae9d797a52a3..f7736a42029c4d2677a5dd0bafee571e72523f2a 100644 (file)
@@ -22,9 +22,7 @@
 #include <stdio.h>
 #include <getopt.h>
 #include <errno.h>
-#include <unistd.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include "sd-path.h"
 #include "build.h"
@@ -117,7 +115,7 @@ static int print_home(const char *n) {
         }
 
         log_error("Path %s not known.", n);
-        return -ENOTSUP;
+        return -EOPNOTSUPP;
 }
 
 static void help(void) {