提交 a5829fd9 编写于 作者: T TeLeMan 提交者: Aurelien Jarno

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: NTeLeMan <geleman@gmail.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 e23a22e6
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册