[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] qemu vl.c
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] qemu vl.c |
Date: |
Fri, 26 Oct 2007 17:49:00 +0200 |
User-agent: |
IceDove 1.5.0.14pre (X11/20071018) |
Thiemo Seufer schrieb:
> CVSROOT: /sources/qemu
> Module name: qemu
> Changes by: Thiemo Seufer <ths> 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
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;
}