From: "Kazu" <kazoo@r3.dion.ne.jp>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Compile fix for win32
Date: Mon, 7 Aug 2006 14:05:55 +0900 [thread overview]
Message-ID: <002001c6b9df$2a1124d0$0464a8c0@athlon> (raw)
[-- Attachment #1: Type: text/plain, Size: 70 bytes --]
Hi,
An attatched patch fixes compile error for win32.
Regards,
Kazu
[-- Attachment #2: qemu-20060807-compile.patch --]
[-- Type: application/octet-stream, Size: 919 bytes --]
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.206
diff -u -r1.206 vl.c
--- vl.c 6 Aug 2006 13:36:11 -0000 1.206
+++ vl.c 7 Aug 2006 03:53:22 -0000
@@ -4539,7 +4539,11 @@
BlockDriverInfo bdi1, *bdi = &bdi1;
QEMUFile *f;
int saved_vm_running;
+#ifdef _WIN32
+ struct _timeb tb;
+#else
struct timeval tv;
+#endif
bs = get_bs_snapshots();
if (!bs) {
@@ -4567,9 +4571,15 @@
}
/* fill auxiliary fields */
+#ifdef _WIN32
+ _ftime(&tb);
+ sn->date_sec = tb.time;
+ sn->date_nsec = tb.millitm * 1000000;
+#else
gettimeofday(&tv, NULL);
sn->date_sec = tv.tv_sec;
sn->date_nsec = tv.tv_usec * 1000;
+#endif
sn->vm_clock_nsec = qemu_get_clock(vm_clock);
if (bdrv_get_info(bs, bdi) < 0 || bdi->vm_state_offset <= 0) {
next reply other threads:[~2006-08-07 5:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 5:05 Kazu [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-05 5:25 [Qemu-devel] Compile fix for win32 Kazu
2006-02-08 3:57 Kazu
2005-12-19 6:40 Kazu
2005-12-19 18:50 ` Johannes Schindelin
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='002001c6b9df$2a1124d0$0464a8c0@athlon' \
--to=kazoo@r3.dion.ne.jp \
--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).