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 21:07:14 +0000 (21:07 +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.

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>
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h

index 87f604417b0f54bd87d9a55fc0d52bb1e3688380..1e19c8511667a8b1e59069c7b9d5443e08d95b6e 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 */