1 diff -urN bluez-5.22.orig/lib/bluetooth.h bluez-5.22/lib/bluetooth.h
2 --- bluez-5.22.orig/lib/bluetooth.h 2013-12-10 15:59:06.000000000 +0900
3 +++ bluez-5.22/lib/bluetooth.h 2015-10-28 13:34:25.749335768 +0900
5 #define bt_get_unaligned(ptr) \
7 struct __attribute__((packed)) { \
8 - typeof(*(ptr)) __v; \
9 - } *__p = (typeof(__p)) (ptr); \
10 + __typeof__(*(ptr)) __v; \
11 + } *__p = (__typeof__(__p)) (ptr); \
15 #define bt_put_unaligned(val, ptr) \
17 struct __attribute__((packed)) { \
18 - typeof(*(ptr)) __v; \
19 - } *__p = (typeof(__p)) (ptr); \
20 + __typeof__(*(ptr)) __v; \
21 + } *__p = (__typeof__(__p)) (ptr); \