From af63ec925e7e7f6eb19dde5f51c8ebec44a10607 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 11 Oct 2012 10:23:19 +0100 Subject: inotify_init: Use inotify_init1 if inotify_init syscall is not defined Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/inotify.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libc/sysdeps/linux/common/inotify.c') diff --git a/libc/sysdeps/linux/common/inotify.c b/libc/sysdeps/linux/common/inotify.c index e2f383671..314388efb 100644 --- a/libc/sysdeps/linux/common/inotify.c +++ b/libc/sysdeps/linux/common/inotify.c @@ -19,6 +19,13 @@ _syscall0(int, inotify_init) _syscall1(int, inotify_init1, int, flags) #endif +#if defined __NR_inotify_init1 && !defined __NR_inotify_init +int inotify_init(void) +{ + return INLINE_SYSCALL(inotify_init1, 1, 0); +} +#endif + #ifdef __NR_inotify_add_watch _syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask) #endif -- cgit v1.2.3