From b14830c5c044561b49fd6da12624701362e85f7c Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Thu, 4 Mar 2021 14:58:43 +0800 Subject: [PATCH] vfs: use sys/dirent.h from newlib The dirent.h shipped with the risc-v compiler lacks `extern "C"` declartion and causes linkage declartion conflict when included in C++ files. Use the dirent.h from newlib only to avoid this issue. --- components/vfs/include/esp_vfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vfs/include/esp_vfs.h b/components/vfs/include/esp_vfs.h index 98180e57f1..ddbabd975c 100644 --- a/components/vfs/include/esp_vfs.h +++ b/components/vfs/include/esp_vfs.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include "sdkconfig.h"