diff --git a/components/esp_common/src/esp_err_to_name.c b/components/esp_common/src/esp_err_to_name.c index 2f33b3ab96..1440eabb73 100644 --- a/components/esp_common/src/esp_err_to_name.c +++ b/components/esp_common/src/esp_err_to_name.c @@ -1,6 +1,7 @@ //Do not edit this file because it is autogenerated by gen_esp_err_to_name.py #include +#include "esp_err.h" #if __has_include("soc/soc.h") #include "soc/soc.h" #endif diff --git a/components/esp_common/src/esp_err_to_name.c.in b/components/esp_common/src/esp_err_to_name.c.in index 5f623c62dc..b9db3a05e6 100644 --- a/components/esp_common/src/esp_err_to_name.c.in +++ b/components/esp_common/src/esp_err_to_name.c.in @@ -1,6 +1,7 @@ @COMMENT@ #include +#include "esp_err.h" #if __has_include("soc/soc.h") #include "soc/soc.h" #endif