package/efl: fix build issue on big endian system
authorRomain Naour <romain.naour@gmail.com>
Thu, 7 Sep 2017 20:41:11 +0000 (22:41 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 9 Sep 2017 20:42:07 +0000 (22:42 +0200)
Fixes:
http://autobuild.buildroot.net/results/0f1/0f12919f59dc92a8d91e23d3b0c1120bc06720db
http://autobuild.buildroot.net/results/62e/62e96be61601347e92f9c115209af4962fe82492

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/efl/0001-eina_debug-add-missing-header-for-big-endian-build.patch [new file with mode: 0644]

diff --git a/package/efl/0001-eina_debug-add-missing-header-for-big-endian-build.patch b/package/efl/0001-eina_debug-add-missing-header-for-big-endian-build.patch
new file mode 100644 (file)
index 0000000..9f0653d
--- /dev/null
@@ -0,0 +1,35 @@
+From 135f4233266443a4546bdf8217f145a0f7bbb90d Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Thu, 7 Sep 2017 22:25:48 +0200
+Subject: [PATCH] eina_debug: add missing header for big endian build
+
+The build fail for big endian system due to missing eina_swap32
+definition.
+Add "eina_cpu.h" include where eina_swap32 prototype is defined.
+
+Patch provided by sharkcz in [1].
+
+Uptream status: pending
+
+[1] https://phab.enlightenment.org/D5158
+
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+---
+ src/lib/eina/eina_debug.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib/eina/eina_debug.c b/src/lib/eina/eina_debug.c
+index ca1bdad..468ca43 100644
+--- a/src/lib/eina/eina_debug.c
++++ b/src/lib/eina/eina_debug.c
+@@ -60,6 +60,7 @@
+ #endif
+ #include "eina_debug.h"
++#include "eina_cpu.h"
+ #include "eina_types.h"
+ #include "eina_list.h"
+ #include "eina_mempool.h"
+-- 
+2.9.5
+