mirror of https://gitee.com/openkylin/qemu.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 <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
This commit is contained in:
parent
8c0ab41f4a
commit
8690e42010
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue