summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch')
-rw-r--r--meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch b/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch
new file mode 100644
index 0000000000..0ef9f147be
--- /dev/null
+++ b/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips64.patch
@@ -0,0 +1,42 @@
1From 62fd97fbc5c53835baa18f210fca593fc8b5c636 Mon Sep 17 00:00:00 2001
2From: Jianchuan Wang <jianchuan.wang@windriver.com>
3Date: Wed, 15 Oct 2014 07:04:02 +0800
4Subject: [PATCH] libaio: fix for mips64
5
6Add mips64 support in the libaio.h
7 - add macro PADDED/PADDEDptr/PADDEDul in the mips64 for structure iocb
8 to be matched userland with kernel
9
10Upstream-Status: Backport
11
12Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
13---
14 src/libaio.h | 12 ++++++++++++
15 1 file changed, 12 insertions(+)
16
17diff --git a/src/libaio.h b/src/libaio.h
18index ff99188..64ea8f3 100644
19--- a/src/libaio.h
20+++ b/src/libaio.h
21@@ -95,6 +95,18 @@ typedef enum io_iocb_cmd {
22 #define PADDED(x, y) unsigned y; x
23 #define PADDEDptr(x, y) unsigned y; x
24 #define PADDEDul(x, y) unsigned y; unsigned long x
25+#elif defined(__mips64)
26+# if defined (__MIPSEB__) /* big endian, 64 bits */
27+#define PADDED(x, y) unsigned y; x
28+#define PADDEDptr(x,y) x
29+#define PADDEDul(x, y) unsigned long x
30+# elif defined(__MIPSEL__) /* little endian, 64 bits */
31+#define PADDED(x, y) x, y
32+#define PADDEDptr(x, y) x
33+#define PADDEDul(x, y) unsigned long x
34+# else
35+# error "mips64: neither mipseb nor mipsel?"
36+# endif
37 #elif defined(__mips__)
38 # if defined (__MIPSEB__) /* big endian, 32 bits */
39 #define PADDED(x, y) unsigned y; x
40--
411.8.2.1
42