Commit 7d294b61edc6bd1be15739a11dce1414080dbb9b

Authored by ths
1 parent f0685f6e

Fix Windows build failure, by Stefan Weil.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3450 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 3 deletions
@@ -8478,12 +8478,12 @@ int main(int argc, char **argv) @@ -8478,12 +8478,12 @@ int main(int argc, char **argv)
8478 main_loop(); 8478 main_loop();
8479 quit_timers(); 8479 quit_timers();
8480 8480
  8481 +#if !defined(_WIN32)
8481 /* close network clients */ 8482 /* close network clients */
8482 for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) { 8483 for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
8483 VLANClientState *vc; 8484 VLANClientState *vc;
8484 8485
8485 - for(vc = vlan->first_client; vc != NULL; vc = vc->next)  
8486 -#if !defined(_WIN32) 8486 + for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
8487 if (vc->fd_read == tap_receive) { 8487 if (vc->fd_read == tap_receive) {
8488 char ifname[64]; 8488 char ifname[64];
8489 TAPState *s = vc->opaque; 8489 TAPState *s = vc->opaque;
@@ -8492,7 +8492,8 @@ int main(int argc, char **argv) @@ -8492,7 +8492,8 @@ int main(int argc, char **argv)
8492 s->down_script[0]) 8492 s->down_script[0])
8493 launch_script(s->down_script, ifname, s->fd); 8493 launch_script(s->down_script, ifname, s->fd);
8494 } 8494 }
8495 -#endif  
8496 } 8495 }
  8496 + }
  8497 +#endif
8497 return 0; 8498 return 0;
8498 } 8499 }