summaryrefslogtreecommitdiff
path: root/packages/qemu/files/workaround_bad_futex_headers.patch
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-23 11:47:15 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-23 11:47:15 +0000
commitf1d0d79f48ab191a1ed0b5065e39046e1d95fef4 (patch)
tree860036a8554d604726a256d7408c711df834b7cb /packages/qemu/files/workaround_bad_futex_headers.patch
parent2534c12ac4c879178132751e51db09c6e4f22cf9 (diff)
parent958b8822656bed6e5526f9441fea36570787f9c7 (diff)
merge of '88dd6a801655485b76bb6d591c1f763d51ff47b8'
and 'ea2a23cae4f4d939a07f699c39b603c4c2559ad1'
Diffstat (limited to 'packages/qemu/files/workaround_bad_futex_headers.patch')
-rw-r--r--packages/qemu/files/workaround_bad_futex_headers.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/qemu/files/workaround_bad_futex_headers.patch b/packages/qemu/files/workaround_bad_futex_headers.patch
new file mode 100644
index 0000000000..cc122ebdba
--- /dev/null
+++ b/packages/qemu/files/workaround_bad_futex_headers.patch
@@ -0,0 +1,25 @@
+---
+ linux-user/syscall.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+Index: qemu/linux-user/syscall.c
+===================================================================
+--- qemu.orig/linux-user/syscall.c 2007-08-09 20:28:06.000000000 +0100
++++ qemu/linux-user/syscall.c 2007-08-09 20:28:41.000000000 +0100
+@@ -61,7 +61,15 @@
+ #define tchars host_tchars /* same as target */
+ #define ltchars host_ltchars /* same as target */
+
+-#include <linux/futex.h>
++#define FUTEX_WAIT 0
++#define FUTEX_WAKE 1
++#define FUTEX_FD 2
++#define FUTEX_REQUEUE 3
++#define FUTEX_CMP_REQUEUE 4
++#define FUTEX_WAKE_OP 5
++#define FUTEX_LOCK_PI 6
++#define FUTEX_UNLOCK_PI 7
++
+ #include <linux/termios.h>
+ #include <linux/unistd.h>
+ #include <linux/utsname.h>