Hi,

This patch fixes bluetooth.h strict C compilation error when building
bluez4 in fido branch.

thanks
Ankur

Signed-off-by: Ankur Tyagi <[email protected]>
---
 .../strict-C-compilation-error-fix.patch           | 42
++++++++++++++++++++++
 meta/recipes-connectivity/bluez/bluez4_4.101.bb    |  1 +
 2 files changed, 43 insertions(+)
 create mode 100644
meta/recipes-connectivity/bluez/bluez4-4.101/strict-C-compilation-error-fix.patch

diff --git
a/meta/recipes-connectivity/bluez/bluez4-4.101/strict-C-compilation-error-fix.patch
b/meta/recipes-connectivity/bluez/bluez4-4.101/strict-C-compilation-error-fix.patch
new file mode 100644
index 0000000..e8109a0
--- /dev/null
+++
b/meta/recipes-connectivity/bluez/bluez4-4.101/strict-C-compilation-error-fix.patch
@@ -0,0 +1,42 @@
+From d7fab1e161c2344875b1b0a2363f1f62efdd6cd4 Mon Sep 17 00:00:00 2001
+From: Ankur Tyagi <[email protected]>
+Date: Thu, 14 Jan 2016 18:12:23 +1300
+Subject: [PATCH 1/1] strict C compilation error fix
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+Upstream-Status: Backported
+---
+ lib/bluetooth.h | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/lib/bluetooth.h b/lib/bluetooth.h
+index 0fc4508..449431d 100644
+--- a/lib/bluetooth.h
++++ b/lib/bluetooth.h
+@@ -138,18 +138,18 @@ enum {
+
+ /* Bluetooth unaligned access */
+ #define bt_get_unaligned(ptr) \
+-({ \
++__extension__ ({ \
+ struct __attribute__((packed)) { \
+- typeof(*(ptr)) __v; \
+- } *__p = (typeof(__p)) (ptr); \
++ __typeof__(*(ptr)) __v; \
++ } *__p = (__typeof__(__p)) (ptr); \
+ __p->__v; \
+ })
+
+ #define bt_put_unaligned(val, ptr) \
+ do { \
+ struct __attribute__((packed)) { \
+- typeof(*(ptr)) __v; \
+- } *__p = (typeof(__p)) (ptr); \
++ __typeof__(*(ptr)) __v; \
++ } *__p = (__typeof__(__p)) (ptr); \
+ __p->__v = (val); \
+ } while(0)
+
+--
+1.9.1
+
diff --git a/meta/recipes-connectivity/bluez/bluez4_4.101.bb
b/meta/recipes-connectivity/bluez/bluez4_4.101.bb
index ccd230d..7944141 100644
--- a/meta/recipes-connectivity/bluez/bluez4_4.101.bb
+++ b/meta/recipes-connectivity/bluez/bluez4_4.101.bb
@@ -9,6 +9,7 @@ SRC_URI += "file://bluetooth.conf \
             file://network-fix-network-Connect-method-parameters.patch \
             file://install-test-script.patch \

 file://use-legacy-pygobject-instead-ofgobject-introspection.patch \
+            file://strict-C-compilation-error-fix.patch
 "

 SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad"
--
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to