From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0HpF-00043t-0Z for qemu-devel@nongnu.org; Wed, 22 Feb 2012 14:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0HpD-0008VC-8k for qemu-devel@nongnu.org; Wed, 22 Feb 2012 14:26:04 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:48873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0HpD-0008Uz-1k for qemu-devel@nongnu.org; Wed, 22 Feb 2012 14:26:03 -0500 Received: by pbbro12 with SMTP id ro12so600153pbb.4 for ; Wed, 22 Feb 2012 11:26:02 -0800 (PST) Message-ID: <4F454146.1050007@codemonkey.ws> Date: Wed, 22 Feb 2012 13:25:58 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1329739880-18752-1-git-send-email-roger.pau@entel.upc.edu> <1329739880-18752-2-git-send-email-roger.pau@entel.upc.edu> In-Reply-To: <1329739880-18752-2-git-send-email-roger.pau@entel.upc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] build: replace librt check function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roger Pau Monne Cc: qemu-devel@nongnu.org, xen-devel@lists.xen.org On 02/20/2012 06:11 AM, Roger Pau Monne wrote: > Replace clock_gettime with timer_gettime, since at least under > uclibc 0.9.33 the clock_getttime function can be used without linking > against librt (although the manual page states the opposite). > > Signed-off-by: Roger Pau Monne I don't think this is against qemu.git. Please do not send patches to qemu-devel that are not against qemu.git without clearly indicating this. Regards, Anthony Liguori > --- > configure | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/configure b/configure > index 7bcd547..fb99632 100755 > --- a/configure > +++ b/configure > @@ -2438,7 +2438,8 @@ fi > cat> $TMPC< #include > #include > -int main(void) { clockid_t id; return clock_gettime(id, NULL); } > +int main(void) { timer_t tid; struct itimerspec it; \ > + return timer_gettime(tid,&it); } > EOF > > if compile_prog "" "" ; then