Use this patch.
http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00107.html

Regards,
Kazu

I thought there was a patch floating around, but this is how I fixed
it, since the code was already there.  No idea if it's correct, but it
let me build and boot on my win32 install.

Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.207
diff -u -r1.207 vl.c
--- vl.c        7 Aug 2006 21:34:46 -0000       1.207
+++ vl.c        17 Aug 2006 13:42:27 -0000
@@ -4539,7 +4539,6 @@
    BlockDriverInfo bdi1, *bdi = &bdi1;
    QEMUFile *f;
    int saved_vm_running;
-    struct timeval tv;

    bs = get_bs_snapshots();
    if (!bs) {
@@ -4567,9 +4566,8 @@
    }

    /* fill auxiliary fields */
-    gettimeofday(&tv, NULL);
-    sn->date_sec = tv.tv_sec;
-    sn->date_nsec = tv.tv_usec * 1000;
+    sn->date_sec = get_clock();
+    sn->date_nsec = get_clock() * 1000;
    sn->vm_clock_nsec = qemu_get_clock(vm_clock);

    if (bdrv_get_info(bs, bdi) < 0 || bdi->vm_state_offset <= 0) {



WD
--
< undrdawg> it was buggy and hung a lot


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to