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.

31 lines
1.3 KiB

  1. From 9510445c5002b0e3502d2ac09723e1b2ddd03704 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  3. Date: Mon, 26 Oct 2015 14:39:55 +0100
  4. Subject: [PATCH] tinydtls: use types from inittype.h, fix musl libc
  5. The SHA2 code currently uses u_int32_t and similar types without
  6. defining them. This type is not defined by the POSIX standard, but many
  7. libc implementations have it as a non standard extension. In the musl
  8. libc it is not implemented and I am getting a compile error when using
  9. u_int32_t, I should use uint32_t, which is done when
  10. SHA2_USE_INTTYPES_H is set.
  11. This fixes build with musl libs used in OpenWrt.
  12. Change-Id: I485435ddb8b1a2359caedd335ab54f91ca5e3f3e
  13. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  14. ---
  15. extlibs/tinydtls/SConscript | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. --- a/extlibs/tinydtls/SConscript
  18. +++ b/extlibs/tinydtls/SConscript
  19. @@ -68,7 +68,7 @@ if not env.get('RELEASE'):
  20. else:
  21. env.AppendUnique(CPPDEFINES = ['NDEBUG'])
  22. -env.AppendUnique(CPPDEFINES = ['DTLSV12', 'WITH_SHA256', 'DTLS_CHECK_CONTENTTYPE'])
  23. +env.AppendUnique(CPPDEFINES = ['DTLSV12', 'WITH_SHA256', 'DTLS_CHECK_CONTENTTYPE', 'SHA2_USE_INTTYPES_H'])
  24. libtinydtls = env.StaticLibrary('libtinydtls', env.get('TINYDTLS_SRC'), OBJPREFIX='libtinydtls_')