Fix Windows build failure, by Stefan Weil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3450 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f0685f6e7a
commit
7d294b61ed
7
vl.c
7
vl.c
@ -8478,12 +8478,12 @@ int main(int argc, char **argv)
|
|||||||
main_loop();
|
main_loop();
|
||||||
quit_timers();
|
quit_timers();
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
/* close network clients */
|
/* close network clients */
|
||||||
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
|
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
|
||||||
VLANClientState *vc;
|
VLANClientState *vc;
|
||||||
|
|
||||||
for(vc = vlan->first_client; vc != NULL; vc = vc->next)
|
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
|
||||||
#if !defined(_WIN32)
|
|
||||||
if (vc->fd_read == tap_receive) {
|
if (vc->fd_read == tap_receive) {
|
||||||
char ifname[64];
|
char ifname[64];
|
||||||
TAPState *s = vc->opaque;
|
TAPState *s = vc->opaque;
|
||||||
@ -8492,7 +8492,8 @@ int main(int argc, char **argv)
|
|||||||
s->down_script[0])
|
s->down_script[0])
|
||||||
launch_script(s->down_script, ifname, s->fd);
|
launch_script(s->down_script, ifname, s->fd);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user