You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
928 B

  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. In the big endian case an additional typedef is added in a wrong
  6. position in TinyDTLS. This breaks compiling this code on big endian
  7. systems.
  8. Change-Id: Iad854aba112ddb23bf490b064ec6fbf5d01ce6b6
  9. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  10. ---
  11. resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. --- a/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h
  14. +++ b/resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h
  15. @@ -194,7 +194,7 @@ typedef enum
  16. #ifdef WORDS_BIGENDIAN
  17. typedef union
  18. {
  19. - typedef struct
  20. + struct
  21. {
  22. unsigned int version:2; /* protocol version */
  23. unsigned int type:2; /* type flag */