Skip to contentSkip to conversation

tinydtls: fix issue on u_intXX_t being undefined

PATCH New Fabrice Fontaine 2 participants 2 messages Aug 28, 2016 – Aug 29, 2016

lore
Share & tools
lore
#0 lore raw

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
index 90796b1..39f79d4 100644
@@ -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
#1 lore raw

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_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.

Reworded slightly to mention that this is a fix for building against musl and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard