summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/qemu/qemu-android-native/fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/qemu/qemu-android-native/fixes.patch')
-rw-r--r--meta-extras/packages/qemu/qemu-android-native/fixes.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-extras/packages/qemu/qemu-android-native/fixes.patch b/meta-extras/packages/qemu/qemu-android-native/fixes.patch
new file mode 100644
index 0000000000..5d16b6061d
--- /dev/null
+++ b/meta-extras/packages/qemu/qemu-android-native/fixes.patch
@@ -0,0 +1,45 @@
1Index: qemu/linux-user/elfload.c
2===================================================================
3--- qemu.orig/linux-user/elfload.c 2007-11-12 06:58:42.000000000 +0000
4+++ qemu/linux-user/elfload.c 2007-11-12 20:41:37.000000000 +0000
5@@ -12,6 +12,10 @@
6 #include "qemu.h"
7 #include "disas.h"
8
9+#ifndef O_BINARY
10+#define O_BINARY 0
11+#endif
12+
13 /* this flag is uneffective under linux too, should be deleted */
14 #ifndef MAP_DENYWRITE
15 #define MAP_DENYWRITE 0
16Index: qemu/linux-user/linuxload.c
17===================================================================
18--- qemu.orig/linux-user/linuxload.c 2007-11-12 06:58:42.000000000 +0000
19+++ qemu/linux-user/linuxload.c 2007-11-12 20:35:16.000000000 +0000
20@@ -12,6 +12,10 @@
21
22 #define NGROUPS 32
23
24+#ifndef O_BINARY
25+#define O_BINARY 0
26+#endif
27+
28 /* ??? This should really be somewhere else. */
29 void memcpy_to_target(target_ulong dest, const void *src,
30 unsigned long len)
31Index: qemu/hw/qfb_fs.c
32===================================================================
33--- qemu.orig/hw/qfb_fs.c 2007-11-12 06:58:41.000000000 +0000
34+++ qemu/hw/qfb_fs.c 2007-11-12 20:59:34.000000000 +0000
35@@ -14,6 +14,10 @@
36 #include <sys/xattr.h>
37 #include <errno.h>
38
39+#ifndef O_BINARY
40+#define O_BINARY 0
41+#endif
42+
43 /* all mount paths */
44 static int next_path_index = 0;
45 static struct mount_path mount_paths[MAX_MOUNT_PATHS];