summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/files
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-09 19:08:38 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-09 19:08:38 +0000
commit8f4687c84c6d540d27bf9bcbdb5360226320e3e3 (patch)
treed968e49c13d58f95f48286d7c4df1e7b213770c5 /meta/packages/qemu/files
parent3d50b7edb31bf209381c1e674de930332091587b (diff)
downloadpoky-8f4687c84c6d540d27bf9bcbdb5360226320e3e3.tar.gz
qemu: Work around bad system futex headers
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2478 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/files')
-rw-r--r--meta/packages/qemu/files/workaround_bad_futex_headers.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/qemu/files/workaround_bad_futex_headers.patch b/meta/packages/qemu/files/workaround_bad_futex_headers.patch
new file mode 100644
index 0000000000..cc122ebdba
--- /dev/null
+++ b/meta/packages/qemu/files/workaround_bad_futex_headers.patch
@@ -0,0 +1,25 @@
1---
2 linux-user/syscall.c | 10 +++++++++-
3 1 file changed, 9 insertions(+), 1 deletion(-)
4
5Index: qemu/linux-user/syscall.c
6===================================================================
7--- qemu.orig/linux-user/syscall.c 2007-08-09 20:28:06.000000000 +0100
8+++ qemu/linux-user/syscall.c 2007-08-09 20:28:41.000000000 +0100
9@@ -61,7 +61,15 @@
10 #define tchars host_tchars /* same as target */
11 #define ltchars host_ltchars /* same as target */
12
13-#include <linux/futex.h>
14+#define FUTEX_WAIT 0
15+#define FUTEX_WAKE 1
16+#define FUTEX_FD 2
17+#define FUTEX_REQUEUE 3
18+#define FUTEX_CMP_REQUEUE 4
19+#define FUTEX_WAKE_OP 5
20+#define FUTEX_LOCK_PI 6
21+#define FUTEX_UNLOCK_PI 7
22+
23 #include <linux/termios.h>
24 #include <linux/unistd.h>
25 #include <linux/utsname.h>