udisks: services: change default.target to multi-user.target
[AGL/meta-agl-demo.git] / recipes-connectivity / bluez5 / bluez5 / 0001_fix_compile_issue_when_using_in_c++.patch
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
4 @@ -158,16 +158,16 @@
5  #define bt_get_unaligned(ptr)                  \
6  ({                                             \
7         struct __attribute__((packed)) {        \
8 -               typeof(*(ptr)) __v;             \
9 -       } *__p = (typeof(__p)) (ptr);           \
10 +               __typeof__(*(ptr)) __v;         \
11 +       } *__p = (__typeof__(__p)) (ptr);               \
12         __p->__v;                               \
13  })
14  
15  #define bt_put_unaligned(val, ptr)             \
16  do {                                           \
17         struct __attribute__((packed)) {        \
18 -               typeof(*(ptr)) __v;             \
19 -       } *__p = (typeof(__p)) (ptr);           \
20 +               __typeof__(*(ptr)) __v;         \
21 +       } *__p = (__typeof__(__p)) (ptr);               \
22         __p->__v = (val);                       \
23  } while(0)