diff --git a/inc/fdb_cfg.h b/inc/fdb_cfg.h index 62e817d..7c31eea 100644 --- a/inc/fdb_cfg.h +++ b/inc/fdb_cfg.h @@ -18,10 +18,16 @@ #include #ifdef RT_USING_DFS -#include -#endif -#define FDB_PRINT(...) rt_kprintf(__VA_ARGS__) +#if RTTHREAD_VERSION >= 40100 +#include +#include +#include +#else // RTTHREAD_VERSION < 40100 +#include +#endif // RTTHREAD_VERSION +#endif // RT_USING_DFS +#define FDB_PRINT(...) rt_kprintf(__VA_ARGS__) #endif /* _FDB_CFG_H_ */ diff --git a/src/fdb_cmd.c b/src/fdb_cmd.c index f2f01f4..b8b7f41 100644 --- a/src/fdb_cmd.c +++ b/src/fdb_cmd.c @@ -13,6 +13,7 @@ #include #include +#include #if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) && defined(FDB_USING_KVDB) #include