From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PATCH: enable -clock dynticks for non-linux hosts
Date: Wed, 07 Jan 2009 11:59:45 -0600 [thread overview]
Message-ID: <4964ED91.5090906@codemonkey.ws> (raw)
In-Reply-To: <20081220235546.GA55355@saturn.kn-bremen.de>
Juergen Lock wrote:
> This does a configure check for posix timers instead of only enabling
> them on linux (and w32) hosts, so that -clock dynticks also works on
> FreeBSD >= 7.0 (and possibly others.)
>
> Index: qemu/configure
> @@ -1025,11 +1025,26 @@
> rt=yes
> fi
>
> +##########################################
> +# posix timer probe
> +cat > $TMPC <<EOF
> +#include <time.h>
> +int main(void) { timer_create(CLOCK_REALTIME, (struct sigevent *)NULL, (timer_t *)NULL); return 0; }
> +EOF
> +posixtimer=no
> +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
> + posixtimer=yes
> +elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt 2> /dev/null ; then
> + posixtimer=yes
> + rt=yes
> +fi
> +
> if test "$rt" = "yes" ; then
> # Hack, we should have a general purpose LIBS for this sort of thing
> AIOLIBS="$AIOLIBS -lrt"
> fi
>
Can you add a proper POSIXTIMERLIBS or something like that instead of
doing the silliness with AIOLIBS?
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-01-07 17:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 23:55 [Qemu-devel] PATCH: enable -clock dynticks for non-linux hosts Juergen Lock
2009-01-07 17:59 ` Anthony Liguori [this message]
2009-01-18 23:30 ` Juergen Lock
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=4964ED91.5090906@codemonkey.ws \
--to=anthony@codemonkey.ws \
--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).