mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 00:27:19 +08:00
Merge pull request #707 from qiaoqidui/master
[SQLite] fix fdatasync bug
This commit is contained in:
commit
0a0f04069a
@ -24400,13 +24400,9 @@ SQLITE_API int sqlite3_fullsync_count = 0;
|
||||
** then simply compile with -Dfdatasync=fdatasync
|
||||
*/
|
||||
#if !defined(fdatasync)
|
||||
#include "dfs.h"
|
||||
#include "dfs_file.h"
|
||||
int fdatasync(fd)
|
||||
{
|
||||
struct dfs_fd *dfs_fd;
|
||||
dfs_fd = fd_get(fd);
|
||||
return dfs_file_flush(dfs_fd);
|
||||
fsync(fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user