libcoap: remove fix build error on big endian systems
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Mon, 26 Oct 2015 13:32:39 +0000 (14:32 +0100)
committerJon A. Cruz <jonc@osg.samsung.com>
Fri, 4 Dec 2015 22:04:29 +0000 (22:04 +0000)
In the big endian case an additional typedef is added in a wrong
position in TinyDTLS. This breaks compiling this code on big endian
systems.

Fixes [IOT-833]

Change-Id: Iad854aba112ddb23bf490b064ec6fbf5d01ce6b6
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3951
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
(cherry picked from commit 4c144ec341731659961c44ba4e1831a799df3e9d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/4423

resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h

index 87f6044..1e19c85 100644 (file)
@@ -194,7 +194,7 @@ typedef enum
 #ifdef WORDS_BIGENDIAN
 typedef union
 {
-    typedef struct
+    struct
     {
         unsigned int version:2; /* protocol version */
         unsigned int type:2; /* type flag */