From 7c07a926bfa7751363431f317c7c62e2f6ef321b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 26 Oct 2015 14:39:55 +0100 Subject: [PATCH] tinydtls: use types from inittype.h, fix musl libc The SHA2 code currently uses u_int32_t and similar types without defining them. This type is not defined by the POSIX standard, but many libc implementations have it as a non standard extension. In the musl libc it is not implemented and I am getting a compile error when using u_int32_t, I should use uint32_t, which is done when SHA2_USE_INTTYPES_H is set. This fixes build with musl libs used in OpenWrt. Change-Id: I485435ddb8b1a2359caedd335ab54f91ca5e3f3e Signed-off-by: Hauke Mehrtens Reviewed-on: https://gerrit.iotivity.org/gerrit/3953 Tested-by: jenkins-iotivity Reviewed-by: Sachin Agrawal --- extlibs/tinydtls/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlibs/tinydtls/SConscript b/extlibs/tinydtls/SConscript index 1f3c2a7..64d5d08 100644 --- a/extlibs/tinydtls/SConscript +++ b/extlibs/tinydtls/SConscript @@ -68,7 +68,7 @@ if not env.get('RELEASE'): else: env.AppendUnique(CPPDEFINES = ['NDEBUG']) -env.AppendUnique(CPPDEFINES = ['DTLSV12', 'WITH_SHA256', 'DTLS_CHECK_CONTENTTYPE']) +env.AppendUnique(CPPDEFINES = ['DTLSV12', 'WITH_SHA256', 'DTLS_CHECK_CONTENTTYPE', 'SHA2_USE_INTTYPES_H']) libtinydtls = env.StaticLibrary('libtinydtls', env.get('TINYDTLS_SRC'), OBJPREFIX='libtinydtls_') -- 2.7.4