aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--linux-user/syscall.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 4035bfcf0..af357132c 100755
--- a/configure
+++ b/configure
@@ -1195,7 +1195,7 @@ int
main(void)
{
/* try to start inotify */
- return inotify_init(void);
+ return inotify_init();
}
EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ec04170b9..b6dc6ccfa 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -486,6 +486,7 @@ _syscall4(int,sys_utimensat,int,dirfd,const char *,pathname,
#endif /* CONFIG_ATFILE */
#ifdef CONFIG_INOTIFY
+#include <sys/inotify.h>
#if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init)
static int sys_inotify_init(void)
@@ -502,7 +503,7 @@ static int sys_inotify_add_watch(int fd,const char *pathname, int32_t mask)
#if defined(TARGET_NR_inotify_rm_watch) && defined(__NR_inotify_rm_watch)
static int sys_inotify_rm_watch(int fd, int32_t wd)
{
- return (inotify_rm_watch(fd,pathname, wd));
+ return (inotify_rm_watch(fd, wd));
}
#endif
#else