chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / shared / selinux-util.c
index a2233e0cfb75e5c259fd42131e5930af2fc96841..a8d5fc4f3e8f372c3611dbd9caed137c3663b2a8 100644 (file)
@@ -20,7 +20,6 @@
 ***/
 
 #include <errno.h>
-#include <unistd.h>
 #include <malloc.h>
 #include <sys/un.h>
 
@@ -146,7 +145,7 @@ int mac_selinux_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
                         r = lsetfilecon(path, fcon);
 
                         /* If the FS doesn't support labels, then exit without warning */
-                        if (r < 0 && errno == ENOTSUP)
+                        if (r < 0 && errno == EOPNOTSUPP)
                                 return 0;
                 }
         }