summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-03-29 16:59:40 +0800
committerGitHub <[email protected]>2017-03-29 16:59:40 +0800
commit0a0f04069ab71f9084838ab570e2b6516c35f42a (patch)
treecf795a9409b4afd0c504836dcd8b442a2a4bc222 /components
parentd07006b739697605d52926ce7f4b9ade4c462bc2 (diff)
parentfe56fad9e528ee66a0f8764b32b944a2447ad90a (diff)
Merge pull request #707 from qiaoqidui/master
[SQLite] fix fdatasync bug
Diffstat (limited to 'components')
-rw-r--r--components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c b/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c
index 789d6d1f4a..c5ff2c897f 100644
--- a/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c
+++ b/components/external/SQLite-3.8.1/SQLiteLib/sqlite3.c
@@ -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