forked from enlightenment/efl
eio: fix build on old debian system.
Patch by Guillaume Friloux <guillaume.friloux@asp64.com> SVN revision: 67330
This commit is contained in:
parent
5b8302468c
commit
408b4b5a39
|
@ -25,6 +25,9 @@
|
||||||
#else
|
#else
|
||||||
# include <asm/unistd.h>
|
# include <asm/unistd.h>
|
||||||
# include <linux/inotify.h>
|
# include <linux/inotify.h>
|
||||||
|
static inline int inotify_init(void);
|
||||||
|
static inline int inotify_add_watch(int fd, const char *name, __u32 mask);
|
||||||
|
static inline int inotify_rm_watch(int fd, __u32 wd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct _Eio_Monitor_Backend
|
struct _Eio_Monitor_Backend
|
||||||
|
@ -205,3 +208,23 @@ void eio_monitor_backend_del(Eio_Monitor *monitor)
|
||||||
eina_hash_del(_inotify_monitors, &monitor->backend->hwnd, monitor->backend);
|
eina_hash_del(_inotify_monitors, &monitor->backend->hwnd, monitor->backend);
|
||||||
monitor->backend = NULL;
|
monitor->backend = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HAVE_SYS_INOTIFY
|
||||||
|
static inline int
|
||||||
|
inotify_init(void)
|
||||||
|
{
|
||||||
|
return syscall(__NR_inotify_init);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int
|
||||||
|
inotify_add_watch(int fd, const char *name, __u32 mask)
|
||||||
|
{
|
||||||
|
return syscall(__NR_inotify_add_watch, fd, name, mask);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int
|
||||||
|
inotify_rm_watch(int fd, __u32 wd)
|
||||||
|
{
|
||||||
|
return syscall(__NR_inotify_rm_watch, fd, wd);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue