]> gitweb.factorcode.org Git - factor.git/commitdiff
Merge branch 'master' of git://factorcode.org/git/factor
authorslava <slava@slava-laptop.(none)>
Thu, 8 May 2008 20:51:10 +0000 (15:51 -0500)
committerslava <slava@slava-laptop.(none)>
Thu, 8 May 2008 20:51:10 +0000 (15:51 -0500)
vm/os-linux.c

index 935add671465cc6b9eed000e9d50498cbafea93c..91017fc3f8e6c769ab6b882976a6cb222b6e4d6a 100644 (file)
@@ -18,6 +18,8 @@ const char *vm_executable_path(void)
        }
 }
 
+#ifdef SYS_inotify_init
+
 int inotify_init(void)
 {
        return syscall(SYS_inotify_init);
@@ -32,3 +34,25 @@ int inotify_rm_watch(int fd, u32 wd)
 {
        return syscall(SYS_inotify_rm_watch, fd, wd);
 }
+
+#else
+
+int inotify_init(void)
+{
+       not_implemented_error();
+       return -1;
+}
+
+int inotify_add_watch(int fd, const char *name, u32 mask)
+{
+       not_implemented_error();
+       return -1;
+}
+
+int inotify_rm_watch(int fd, u32 wd)
+{
+       not_implemented_error();
+       return -1;
+}
+
+#endif