Skip to content

Commit

Permalink
Merge pull request #1 from dongly/fix_rtt_v4.1.0
Browse files Browse the repository at this point in the history
适配 RT-Thread V4.1.0
  • Loading branch information
armink authored Feb 8, 2022
2 parents 2fa928a + a702883 commit 69bdf4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions inc/fdb_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@

#include <rtthread.h>
#ifdef RT_USING_DFS
#include <dfs_posix.h>
#endif

#define FDB_PRINT(...) rt_kprintf(__VA_ARGS__)
#if RTTHREAD_VERSION >= 40100
#include <sys/stat.h>
#include <sys/statfs.h>
#include <unistd.h>
#else // RTTHREAD_VERSION < 40100
#include <dfs_posix.h>
#endif // RTTHREAD_VERSION
#endif // RT_USING_DFS

#define FDB_PRINT(...) rt_kprintf(__VA_ARGS__)

#endif /* _FDB_CFG_H_ */
1 change: 1 addition & 0 deletions src/fdb_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <flashdb.h>
#include <rtthread.h>
#include <string.h>

#if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH) && defined(FDB_USING_KVDB)
#include <finsh.h>
Expand Down

0 comments on commit 69bdf4c

Please sign in to comment.