899bb34abefcc53a3acec614acb5323118758f3c
[feed/packages.git] / net / iotivity / patches / 010-big-endian.patch
1 From d647872aee4871e286ddedf4931792086f5b4565 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
3 Date: Mon, 26 Oct 2015 14:32:39 +0100
4 Subject: [PATCH] libcoap: remove fix build error on big endian systems
5
6 In the big endian case an additional typedef is added in a wrong
7 position in TinyDTLS. This breaks compiling this code on big endian
8 systems.
9
10 Change-Id: Iad854aba112ddb23bf490b064ec6fbf5d01ce6b6
11 Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
12 ---
13 resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h
17 +++ b/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h
18 @@ -194,7 +194,7 @@ typedef enum
19 #ifdef WORDS_BIGENDIAN
20 typedef union
21 {
22 - typedef struct
23 + struct
24 {
25 unsigned int version:2; /* protocol version */
26 unsigned int type:2; /* type flag */