]> git.proxmox.com Git - qemu.git/blobdiff - migration-tcp.c
sun4m: Add FCode ROM for TCX framebuffer
[qemu.git] / migration-tcp.c
index 5ea4f3d2b6296ef98340387bb54f7d0d61e9166b..782572de82923cbe69acd98de163629bae0d3831 100644 (file)
@@ -18,6 +18,7 @@
 #include "migration/migration.h"
 #include "migration/qemu-file.h"
 #include "block/block.h"
+#include "qemu/main-loop.h"
 
 //#define DEBUG_MIGRATION_TCP
 
@@ -35,11 +36,11 @@ static void tcp_wait_for_connect(int fd, void *opaque)
 
     if (fd < 0) {
         DPRINTF("migrate connect error\n");
-        s->migration_file = NULL;
+        s->file = NULL;
         migrate_fd_error(s);
     } else {
         DPRINTF("migrate connect success\n");
-        s->migration_file = qemu_fopen_socket(fd, "wb");
+        s->file = qemu_fopen_socket(fd, "wb");
         migrate_fd_connect(s);
     }
 }