From: aurel32 Date: Fri, 17 Apr 2009 13:50:32 +0000 (+0000) Subject: linux-user: fix inotify syscalls X-Git-Tag: TizenStudio_2.0_p2.3~9151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c1d84528c821dc813be15edb9d0c8f3f7245b3e;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7134 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/configure b/configure index 4035bfc..af35713 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 ec04170..b6dc6cc 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 #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