diff --git a/components/heap/multi_heap_poisoning.c b/components/heap/multi_heap_poisoning.c index 559ad18d2e..3717b6c299 100644 --- a/components/heap/multi_heap_poisoning.c +++ b/components/heap/multi_heap_poisoning.c @@ -21,7 +21,10 @@ #include #include #include "multi_heap_internal.h" -#include "heap_private.h" +#if CONFIG_IDF_TARGET_ESP32S2BETA + #include "heap_private.h" +#endif + /* Note: Keep platform-specific parts in this header, this source file should depend on libc only */