summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authoraurel322009-04-17 15:50:32 +0200
committeraurel322009-04-17 15:50:32 +0200
commit8690e42010a645dfede7779be2d3013bfc453966 (patch)
tree33c67f203932e6a9a6518a8181b4d2fcc383a135 /linux-user
parentRevert "target-mips: fix call to check_*() functions" (diff)
downloadqemu-8690e42010a645dfede7779be2d3013bfc453966.tar.gz
qemu-8690e42010a645dfede7779be2d3013bfc453966.tar.xz
qemu-8690e42010a645dfede7779be2d3013bfc453966.zip
linux-user: fix inotify syscalls
Configure test was broken, so the breakage of the #ifdef'd code was not noticed. Signed-off-by: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7134 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ec04170b98..b6dc6ccfa0 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