xen/xen-4.2.2-qemu-configure.patch

33 lines
1.0 KiB
Diff

diff --git xen-4.2.2/tools/qemu-xen/configure xen-4.2.2/tools/qemu-xen/configure
index 24778bf..947fa3f 100755
--- xen-4.2.2/tools/qemu-xen/configure.orig 2013-04-06 01:39:54.000000000 +0200
+++ xen-4.2.2/tools/qemu-xen/configure 2013-05-30 01:37:45.490314092 +0200
@@ -2463,11 +2463,14 @@
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 timer; struct itimerspec timeout; timer_settime(timer, 0, &timeout, NULL);
+ clockid_t id; return clock_gettime(id, NULL);
+}
EOF
if compile_prog "" "" ; then
- :
+ LIBS="-lrt $LIBS"
elif compile_prog "" "-lrt" ; then
LIBS="-lrt $LIBS"
fi
--- xen-4.2.2/tools/qemu-xen-traditional/configure.orig 2013-05-30 01:57:46.182064602 +0200
+++ xen-4.2.2/tools/qemu-xen-traditional/configure 2013-05-30 01:58:20.425657638 +0200
@@ -1102,7 +1102,7 @@
rt=no
if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
- :
+ rt=yes
elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt > /dev/null 2> /dev/null ; then
rt=yes
fi