[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: Re: Compile error on Windows
From: |
alex |
Subject: |
[Qemu-devel] Re: Re: Compile error on Windows |
Date: |
Thu, 17 Aug 2006 07:51:39 -0700 |
Thanks all,
I updated my CVS tree this morning and it compiled fine.
Obviously, the problem has been fixed already fixed.
Alex.
"WaxDragon" <address@hidden> wrote in message
news:address@hidden
> > 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] Compile error on Windows, alex, 2006/08/20