]> git.pld-linux.org Git - packages/xen.git/blob - xen-librt.patch
- added librt patch (qemu build fix for glibc 2.17)
[packages/xen.git] / xen-librt.patch
1 Adjust librt checks for glibc 2.17+:
2 Since glibc 2.17 clock interface is in libc, but timer interface remains in librt;
3 qemu needs both.
4 --- xen-4.2.1/tools/qemu-xen-traditional/configure.orig 2013-01-12 20:42:53.970053672 +0100
5 +++ xen-4.2.1/tools/qemu-xen-traditional/configure      2013-01-12 21:44:40.249976425 +0100
6 @@ -1097,7 +1097,7 @@
7  cat > $TMPC <<EOF
8  #include <signal.h>
9  #include <time.h>
10 -int main(void) { clockid_t id; return clock_gettime(id, NULL); }
11 +int main(void) { clockid_t id; timer_t tid; (void)timer_gettime(tid, NULL); return clock_gettime(id, NULL); }
12  EOF
13  
14  rt=no
15 --- xen-4.2.1/tools/qemu-xen/configure.orig     2013-01-12 20:42:53.986720338 +0100
16 +++ xen-4.2.1/tools/qemu-xen/configure  2013-01-12 21:44:39.856643097 +0100
17 @@ -2463,7 +2463,7 @@
18  cat > $TMPC <<EOF
19  #include <signal.h>
20  #include <time.h>
21 -int main(void) { clockid_t id; return clock_gettime(id, NULL); }
22 +int main(void) { clockid_t id; timer_t tid; (void)timer_gettime(tid, NULL); return clock_gettime(id, NULL); }
23  EOF
24  
25  if compile_prog "" "" ; then
This page took 0.927203 seconds and 4 git commands to generate.