nuttx-apps/fsutils/libtinycbor
Felipe Moura 0e2e851f50 fsutils/libtinycbor: fix build on picolibc/newlib
CONFIG_FSUTILS_TINYCBOR_LIB fails to build on toolchains with their own
<memory.h> (picolibc, newlib): cbortojson.c does "#include <memory.h>"
meaning TinyCBOR's own (where cbor_malloc/cbor_realloc/cbor_free are
declared), but only the parent directory was on the include path, so
the toolchain's own <memory.h> wins instead, leaving those symbols
implicitly declared.

Fix: also put the unpacked tinycbor/ subdirectory (Make.defs' own
TINYCBOR_UNPACKNAME) on the include path.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
Assisted-by: Claude:claude-sonnet-5
2026-09-18 21:24:16 +08:00
..
.gitignore Add a simple TinyCBOR Test Example 2023-04-28 12:04:20 +08:00
CMakeLists.txt fsutils: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
fix_open_memstream.patch fsutils/libtinycbor: Update TinyCBOR to 0.6.1 2025-08-13 22:09:32 +08:00
Kconfig
Make.defs fsutils/libtinycbor: fix build on picolibc/newlib 2026-09-18 21:24:16 +08:00
Makefile fsutils/libtinycbor: Update TinyCBOR to 0.6.1 2025-08-13 22:09:32 +08:00