From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDiAP-0005yO-Il for qemu-devel@nongnu.org; Thu, 17 Aug 2006 09:44:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDiAO-0005wI-2R for qemu-devel@nongnu.org; Thu, 17 Aug 2006 09:44:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDiAN-0005w9-UD for qemu-devel@nongnu.org; Thu, 17 Aug 2006 09:44:11 -0400 Received: from [64.233.182.186] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDiGs-00053o-E2 for qemu-devel@nongnu.org; Thu, 17 Aug 2006 09:50:54 -0400 Received: by nf-out-0910.google.com with SMTP id m19so1083178nfc for ; Thu, 17 Aug 2006 06:44:10 -0700 (PDT) Message-ID: <9b0d5f320608170644t48fb5041r85cb3818cd03635b@mail.gmail.com> Date: Thu, 17 Aug 2006 09:44:10 -0400 From: WaxDragon Subject: Re: [Qemu-devel] Re: Compile error on Windows In-Reply-To: <000401c6c1b9$c86d13a0$0464a8c0@athlon> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000401c6c1b9$c86d13a0$0464a8c0@athlon> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > 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