aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorTeLeMan <geleman@gmail.com>2010-04-15 12:37:55 +0800
committerAurelien Jarno <aurelien@aurel32.net>2010-05-18 19:56:59 +0200
commita5829fd9e6e49016188efd17a6bb34e80f50cd4c (patch)
tree10782eb6ee6d04d6fa2ea694026f67d15b8a75c7 /vl.c
parente23a22e620e84f42bdbd473b82672654e7c8de73 (diff)
downloadqemu-a5829fd9e6e49016188efd17a6bb34e80f50cd4c.zip
qemu-a5829fd9e6e49016188efd17a6bb34e80f50cd4c.tar.gz
qemu-a5829fd9e6e49016188efd17a6bb34e80f50cd4c.tar.bz2
fix chardev_init for win32
chardev_init functions use socket,so socket_init() shoud be placed at the front of chardev_init on win32. Signed-off-by: TeLeMan <geleman@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 85bcc84..d77b47c 100644
--- a/vl.c
+++ b/vl.c
@@ -3509,6 +3509,8 @@ int main(int argc, char **argv, char **envp)
if (default_vga)
vga_interface_type = VGA_CIRRUS;
+ socket_init();
+
if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0)
exit(1);
#ifdef CONFIG_LINUX
@@ -3617,8 +3619,6 @@ int main(int argc, char **argv, char **envp)
}
configure_icount(icount_option);
- socket_init();
-
if (net_init_clients() < 0) {
exit(1);
}