Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuoSh-0004se-Q8 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 09:50:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuoSh-0004sS-Cf for qemu-devel@nongnu.org; Fri, 17 Apr 2009 09:50:35 -0400 Received: from [199.232.76.173] (port=43617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuoSh-0004sI-49 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 09:50:35 -0400 Received: from savannah.gnu.org ([199.232.41.3]:36225 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuoSg-0002NM-R3 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 09:50:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LuoSg-00017Q-7e for qemu-devel@nongnu.org; Fri, 17 Apr 2009 13:50:34 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LuoSf-00017M-RA for qemu-devel@nongnu.org; Fri, 17 Apr 2009 13:50:34 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Fri, 17 Apr 2009 13:50:33 +0000 Subject: [Qemu-devel] [7134] linux-user: fix inotify syscalls Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Aurelien Jarno 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 #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