diff --git a/opendir_sample.c b/opendir_sample.c index 5be4647..37a4938 100644 --- a/opendir_sample.c +++ b/opendir_sample.c @@ -23,6 +23,8 @@ #include #endif /*RT_VER_NUM >= 0x40100*/ +#include + static void opendir_sample(void) { DIR *dirp; diff --git a/readdir_sample.c b/readdir_sample.c index 327466c..dad1c9c 100644 --- a/readdir_sample.c +++ b/readdir_sample.c @@ -24,6 +24,8 @@ #include #endif /*RT_VER_NUM >= 0x40100*/ +#include + static void readdir_sample(void) { DIR *dirp; diff --git a/tell_seek_dir_sample.c b/tell_seek_dir_sample.c index 8d6f00c..c62b72d 100644 --- a/tell_seek_dir_sample.c +++ b/tell_seek_dir_sample.c @@ -22,6 +22,8 @@ #include #endif /*RT_VER_NUM >= 0x40100*/ +#include + /* 假设文件操作是在一个线程中完成 */ static void telldir_sample(void) {