Commit 8690e42010a645dfede7779be2d3013bfc453966
1 parent
8c0ab41f
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
Showing
2 changed files
with
3 additions
and
2 deletions
configure
linux-user/syscall.c
| ... | ... | @@ -486,6 +486,7 @@ _syscall4(int,sys_utimensat,int,dirfd,const char *,pathname, |
| 486 | 486 | #endif /* CONFIG_ATFILE */ |
| 487 | 487 | |
| 488 | 488 | #ifdef CONFIG_INOTIFY |
| 489 | +#include <sys/inotify.h> | |
| 489 | 490 | |
| 490 | 491 | #if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init) |
| 491 | 492 | static int sys_inotify_init(void) |
| ... | ... | @@ -502,7 +503,7 @@ static int sys_inotify_add_watch(int fd,const char *pathname, int32_t mask) |
| 502 | 503 | #if defined(TARGET_NR_inotify_rm_watch) && defined(__NR_inotify_rm_watch) |
| 503 | 504 | static int sys_inotify_rm_watch(int fd, int32_t wd) |
| 504 | 505 | { |
| 505 | - return (inotify_rm_watch(fd,pathname, wd)); | |
| 506 | + return (inotify_rm_watch(fd, wd)); | |
| 506 | 507 | } |
| 507 | 508 | #endif |
| 508 | 509 | #else | ... | ... |