From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17 Date: Mon, 29 Apr 2013 15:40:13 +0200 Message-ID: <20130429134013.GA29658@aepfle.de> References: <1354732880-20096-1-git-send-email-olaf@aepfle.de> <20130116154730.GA22799@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130116154730.GA22799@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ping On Wed, Jan 16, Olaf Hering wrote: > Ping > > On Wed, Dec 05, Olaf Hering wrote: > > > configure uses clock_gettime to check whether -lrt is needed - and don't > > check other functions. With glibc 2.17 clock_gettime is part of libc, so > > use timer_gettime instead, which is in -lrt in old and new versions of > > glibc. > > > > Signed-off-by: Olaf Hering > > --- > > configure | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/configure b/configure > > index 904e019..ace3c3e 100755 > > --- a/configure > > +++ b/configure > > @@ -1097,7 +1097,7 @@ fi > > cat > $TMPC < > #include > > #include > > -int main(void) { clockid_t id; return clock_gettime(id, NULL); } > > +int main(void) { struct itimerspec v; timer_t t; return timer_gettime (t, &v); } > > EOF > > > > rt=no