qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [7134] linux-user: fix inotify syscalls


From: Aurelien Jarno
Subject: [Qemu-devel] [7134] linux-user: fix inotify syscalls
Date: Fri, 17 Apr 2009 13:50:33 +0000

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.

Signed-off-by: Riku Voipio <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>

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

Modified: trunk/configure
===================================================================
--- trunk/configure     2009-04-17 13:17:26 UTC (rev 7133)
+++ trunk/configure     2009-04-17 13:50:32 UTC (rev 7134)
@@ -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
===================================================================
--- trunk/linux-user/syscall.c  2009-04-17 13:17:26 UTC (rev 7133)
+++ trunk/linux-user/syscall.c  2009-04-17 13:50:32 UTC (rev 7134)
@@ -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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]