qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: WaxDragon <waxdragon@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Compile error on Windows
Date: Thu, 17 Aug 2006 09:44:10 -0400	[thread overview]
Message-ID: <9b0d5f320608170644t48fb5041r85cb3818cd03635b@mail.gmail.com> (raw)
In-Reply-To: <000401c6c1b9$c86d13a0$0464a8c0@athlon>

> 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

  reply	other threads:[~2006-08-17 13:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17  1:24 [Qemu-devel] Compile error on Windows Armistead, Jason
2006-08-17  3:46 ` [Qemu-devel] " Alex
2006-08-17  4:58   ` Kazu
2006-08-17 13:44     ` WaxDragon [this message]
2006-08-17 14:51       ` [Qemu-devel] " alex

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b0d5f320608170644t48fb5041r85cb3818cd03635b@mail.gmail.com \
    --to=waxdragon@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).