tinydtls: use types from inittype.h, fix musl libc
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Mon, 26 Oct 2015 13:39:55 +0000 (14:39 +0100)
committerJon A. Cruz <jonc@osg.samsung.com>
Mon, 7 Dec 2015 20:19:19 +0000 (20:19 +0000)
commit72c897594ef9e8ee7ba95d82e1264d0b8ce8ce34
treec605246ed776af55f78ded2927746d023ed97cd3
parentdca3b3e6c386bf9797168ea939e10c7d1b3626ff
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.

Fix for [IOT-834]

Change-Id: I485435ddb8b1a2359caedd335ab54f91ca5e3f3e
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3953
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
(cherry picked from commit 7c07a926bfa7751363431f317c7c62e2f6ef321b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/4437
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
extlibs/tinydtls/SConscript