Skip to contentSkip to conversation

[7134] linux-user: fix inotify syscalls

Qemu-devel Aurelien Jarno 1 participant 1 message Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7134

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7134
Author:   aurel32
Date:     2009-04-17 13:50:32 +0000 (Fri, 17 Apr 2009)

Log Message:
-----------
linux-user: fix inotify syscalls

Configure test was broken, so the breakage of the #ifdef'd code was not noticed.

Modified Paths:
--------------
trunk/configure
trunk/linux-user/syscall.c

Modified: trunk/configure
===================================================================

configure +1 -1
@@ -1195,7 +1195,7 @@
 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

Modified: trunk/linux-user/syscall.c
===================================================================

linux-user/syscall.c +2 -1
@@ -486,6 +486,7 @@
 #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 @@
 #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