qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Solaris host patch for QEMU


From: Markus Niemistö
Subject: Re: [Qemu-devel] Solaris host patch for QEMU
Date: Sat, 12 Jun 2004 08:38:46 +0300

On Fri, 11 Jun 2004 19:23:09 -0400
"EricNorthup" <address@hidden> wrote:

>  #ifdef _BSD
>  #include <ieeefp.h>
> -#else
> -#include <fenv.h>
>  #endif
> +#include <fenv.h>

This will break BSD build. With this change fenv.h would always
be included. You should change it to something like:

#if defined(_BSD) && !defined(_SOLARIS)
#include <ieeefp.h>
#else
#include <fenv.h>
#endif


> +#ifndef _SOLARIS
>          if (itv.it_interval.tv_usec > 1000) {
>              /* try to use /dev/rtc to have a faster timer */
>              if (start_rtc_timer() < 0)
> @@ -885,6 +888,10 @@
>              pit_min_timer_count = ((uint64_t)itv.it_interval.tv_usec
>              * PIT_FREQ) / 1000000;
>          }
> +#else
> +
> +     pit_min_timer_count = ((uint64_t)itv.it_interval.tv_usec *
> PIT_FREQ) / 1000000;
> +#endif // ! _SOLARIS

I think it should be #ifndef _BSD. The patch that makes it work on BSD
is not it the tree yet.

Regards,
        Markus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]