qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7134] linux-user: fix inotify syscalls
@ 2009-04-17 13:50 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-04-17 13:50 UTC (permalink / raw)
  To: qemu-devel

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 <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-17 13:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 13:50 [Qemu-devel] [7134] linux-user: fix inotify syscalls Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).