summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/cplusplus/Kconfig2
-rw-r--r--components/utilities/ymodem/ry_sy.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/components/cplusplus/Kconfig b/components/cplusplus/Kconfig
index dfab433da0..42b5cf9556 100644
--- a/components/cplusplus/Kconfig
+++ b/components/cplusplus/Kconfig
@@ -10,7 +10,7 @@ if RT_USING_CPLUSPLUS
bool "Enable c++11 threading feature support"
default n
select RT_USING_LIBC
- select RT_USING_DFS
+ select RT_LIBC_USING_FILEIO
select RT_USING_PTHREADS
select RT_USING_RTC
diff --git a/components/utilities/ymodem/ry_sy.c b/components/utilities/ymodem/ry_sy.c
index caad51d6cd..3f3b022d7e 100644
--- a/components/utilities/ymodem/ry_sy.c
+++ b/components/utilities/ymodem/ry_sy.c
@@ -17,6 +17,10 @@
#include <stdlib.h>
#include <string.h>
+#ifndef DFS_USING_POSIX
+#error "Please enable DFS_USING_POSIX"
+#endif
+
struct custom_ctx
{
struct rym_ctx parent;