chiark / gitweb /
rules: fix typo in ide cd rule
[elogind.git] / udev / udev-sysdeps.h
index eaeab86f6b1cd6b7bcaaf4cef3d37888eca428b8..e20ea48a2f9f363da296321366f50eff15085e20 100644 (file)
@@ -21,6 +21,7 @@
 #define _UDEV_SYSDEPS_H_
 
 #include <stdint.h>
 #define _UDEV_SYSDEPS_H_
 
 #include <stdint.h>
+#include <errno.h>
 
 /* needed for our signal handlers to work */
 #undef asmlinkage
 
 /* needed for our signal handlers to work */
 #undef asmlinkage
@@ -33,6 +34,7 @@
 #ifndef HAVE_INOTIFY
 static inline int inotify_init(void)
 {
 #ifndef HAVE_INOTIFY
 static inline int inotify_init(void)
 {
+       errno = ENOSYS;
        return -1;
 }
 
        return -1;
 }