]> granicus.if.org Git - esp-idf/commitdiff
heap: fix build failure due to missing header
authorMahavir Jain <mahavir@espressif.com>
Thu, 26 Apr 2018 05:33:43 +0000 (11:03 +0530)
committerMahavir Jain <mahavir@espressif.com>
Thu, 26 Apr 2018 05:38:58 +0000 (11:08 +0530)
Closes https://github.com/espressif/esp-idf/issues/1881

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
components/heap/multi_heap_platform.h

index df607e6cd05f42be66609fdfba42fbdcfe5f4435..6c220cd5d2c87cf3b94dd89e5deee4515291866f 100644 (file)
@@ -63,6 +63,7 @@ inline static void multi_heap_assert(bool condition, const char *format, int lin
                       __LINE__, (intptr_t)(ADDRESS))
 
 #ifdef CONFIG_HEAP_TASK_TRACKING
+#include <freertos/task.h>
 #define MULTI_HEAP_BLOCK_OWNER TaskHandle_t task;
 #define MULTI_HEAP_SET_BLOCK_OWNER(HEAD) (HEAD)->task = xTaskGetCurrentTaskHandle()
 #define MULTI_HEAP_GET_BLOCK_OWNER(HEAD) ((HEAD)->task)