diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2016-08-28 23:57:11 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-08-29 17:23:41 +0200 |
commit | 07552de23b95b48412be89ca5c162d8855872206 (patch) | |
tree | 5b311aa890a99793f5f5d798e2b5010db06b59f5 | |
parent | f7d7db2469d5dc32237efecefed7681624d5a465 (diff) | |
download | buildroot-07552de23b95b48412be89ca5c162d8855872206.tar.gz buildroot-07552de23b95b48412be89ca5c162d8855872206.zip |
tinydtls: fix issue on u_intXX_t being undefined when building with musl
Fixes:
http://autobuild.buildroot.net/results/928be69f90476e6b04be3a1afd3b74112bcac0a0
As mentioned 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.
[Peter: reword/simplify]
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/tinydtls/tinydtls.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/tinydtls/tinydtls.mk b/package/tinydtls/tinydtls.mk index 90796b1487..fe250014ca 100644 --- a/package/tinydtls/tinydtls.mk +++ b/package/tinydtls/tinydtls.mk @@ -11,5 +11,7 @@ TINYDTLS_LICENSE = MIT TINYDTLS_LICENSE_FILES = tinydtls.h TINYDTLS_INSTALL_STAGING = YES TINYDTLS_STRIP_COMPONENTS = 2 +# use inttypes.h data types instead of u_intXX_t for musl compatibility +TINYDTLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DSHA2_USE_INTTYPES_H" $(eval $(autotools-package)) |