From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlRQn-0003Hv-JU for qemu-devel@nongnu.org; Fri, 26 Oct 2007 11:49:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlRQl-0003FL-TE for qemu-devel@nongnu.org; Fri, 26 Oct 2007 11:49:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlRQl-0003Et-Ia for qemu-devel@nongnu.org; Fri, 26 Oct 2007 11:49:03 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IlRQl-0006l4-11 for qemu-devel@nongnu.org; Fri, 26 Oct 2007 11:49:03 -0400 Message-ID: <47220C6C.7010001@mail.berlios.de> Date: Fri, 26 Oct 2007 17:49:00 +0200 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu vl.c References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070204010001090208060004" 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 This is a multi-part message in MIME format. --------------070204010001090208060004 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Thiemo Seufer schrieb: > CVSROOT: /sources/qemu > Module name: qemu > Changes by: Thiemo Seufer 07/10/21 23:20:46 > > Modified files: > . : vl.c > > Log message: > Support tap down script, by Wolfram Gloger. > > CVSWeb URLs: > http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.349&r2=1.350 Hi Thiemo, on Windows, vl.c raises a compilation error. This patch fixes it. Stefan --------------070204010001090208060004 Content-Type: text/x-diff; name="vl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vl.patch" Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.350 diff -u -b -B -r1.350 vl.c --- vl.c 21 Oct 2007 23:20:45 -0000 1.350 +++ vl.c 26 Oct 2007 15:07:02 -0000 @@ -8478,12 +8478,12 @@ main_loop(); quit_timers(); +#if !defined(_WIN32) /* close network clients */ for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) { VLANClientState *vc; - for(vc = vlan->first_client; vc != NULL; vc = vc->next) -#if !defined(_WIN32) + for(vc = vlan->first_client; vc != NULL; vc = vc->next) { if (vc->fd_read == tap_receive) { char ifname[64]; TAPState *s = vc->opaque; @@ -8492,7 +8492,8 @@ s->down_script[0]) launch_script(s->down_script, ifname, s->fd); } -#endif } + } +#endif return 0; } --------------070204010001090208060004--