mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-08 08:53:43 +08:00
compat.h calls getenv (cbm_tmpdir) and _putenv_s (cbm_setenv/cbm_unsetenv) but only included stddef.h and stdio.h. The x86-64 mingw toolchain pulled stdlib.h in transitively, so it built there, but the aarch64 (CLANGARM64) include chain does not — the calls became implicit declarations that conflict with the real stdlib.h getenv type and fail to compile on native ARM64 Windows. Include stdlib.h directly so the declarations are correct on every toolchain. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>