tinydtls: fix issue on u_intXX_t being undefined
PATCH 1/1 tinydtls: fix issue on u_intXX_t being undefined
Fixes:
http://autobuild.buildroot.net/results/928be69f90476e6b04be3a1afd3b74112bcac0a0
As define in sha2/README, by default, tinydtls uses u_intXX_t data types for 8 bit, 32 bit, and 64 bit unsigned integer type definitions. To use uintXX_t data types as defined by recent ANSI C standards and as included in the inttypes.h header file, SHA2_USE_INTTYPES_H has to be define at compile time.
--- package/tinydtls/tinydtls.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/tinydtls/tinydtls.mk +6 -0
@@ -11,5 +11,11 @@ TINYDTLS_LICENSE = MIT TINYDTLS_LICENSE_FILES = tinydtls.h TINYDTLS_INSTALL_STAGING = YES TINYDTLS_STRIP_COMPONENTS = 2 +# As define in sha2/README, by default, tinydtls uses u_intXX_t data types for +# 8 bit, 32 bit, and 64 bit unsigned integer type definitions. +# To use uintXX_t data types as defined by recent ANSI C standards and as +# included in the inttypes.h header file, SHA2_USE_INTTYPES_H has to be define +# at compile time. +TINYDTLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DSHA2_USE_INTTYPES_H" $(eval $(autotools-package))
Signature · 1 line
2.5.0
PATCH 1/1 tinydtls: fix issue on u_intXX_t being undefined
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Fixes:
http://autobuild.buildroot.net/results/928be69f90476e6b04be3a1afd3b74112bcac0a0
Quoted 7 lines
As define in sha2/README, by default, tinydtls uses
u_intXX_tdata types for 8 bit, 32 bit, and 64 bit unsigned integer type definitions. To useuintXX_tdata types as defined by recent ANSI C standards and as included in theinttypes.hheader file,SHA2_USE_INTTYPES_Hhas to be define at compile time.Signed-off-by Fabrice Fontaine <[email protected]>
Reworded slightly to mention that this is a fix for building against musl and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard