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

Re: [Xen-devel] [PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Wed, 16 Jan 2013 16:47:30 +0100
  • Delivery-date: Wed, 16 Jan 2013 15:48:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

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 <olaf@xxxxxxxxx>
> ---
>  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 <<EOF
>  #include <signal.h>
>  #include <time.h>
> -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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.