Re: [Qemu-devel] [PATCH 2/2] build: replace librt check function
2012/2/22 Anthony Liguori anth...@codemonkey.ws: 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 Monneroger@entel.upc.edu 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. Sorry, this is against qemu-xen-upstream, should I add a tag to my patches and resend them to qemu-devel? Thanks, Roger. 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 $TMPCEOF #includesignal.h #includetime.h -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
Re: [Qemu-devel] [PATCH 2/2] build: replace librt check function
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 Monneroger@entel.upc.edu 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 $TMPCEOF #includesignal.h #includetime.h -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
[Qemu-devel] [PATCH 2/2] build: replace librt check function
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 roger@entel.upc.edu --- 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 EOF #include signal.h #include time.h -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 -- 1.7.9