achieved to compile the kvm tools against uclibc using buildrom
[kvm-coreboot.git] / packages / kvm / patches / kvm-uclibc.patch
blob9177e5eab730e537ea0e391fa4de9c4c7b31b4f6
1 diff -Naur kvm-72.orig/libkvm/libkvm-x86.c kvm-72/libkvm/libkvm-x86.c
2 --- kvm-72.orig/libkvm/libkvm-x86.c 2008-07-27 13:08:56.000000000 +0300
3 +++ kvm-72/libkvm/libkvm-x86.c 2008-07-30 02:39:00.000000000 +0300
4 @@ -4,7 +4,9 @@
5 #include <sys/ioctl.h>
6 #include <string.h>
7 #include <unistd.h>
8 +#ifndef __UCLIBC__
9 #include <stropts.h>
10 +#endif
11 #include <sys/mman.h>
12 #include <stdio.h>
13 #include <errno.h>
14 --- kvm-72/qemu/fpu/softfloat-native.c.orig 2008-08-09 01:56:01.000000000 +0300
15 +++ kvm-72/qemu/fpu/softfloat-native.c 2008-08-09 01:56:22.000000000 +0300
16 @@ -8,7 +8,7 @@
17 STATUS(float_rounding_mode) = val;
18 #if defined(_BSD) && !defined(__APPLE__) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
19 fpsetround(val);
20 -#elif defined(__arm__)
21 +#elif defined(__arm__) || defined (__UCLIBC__)
22 /* nothing to do */
23 #else
24 fesetround(val);