fix fdatasync bug

This commit is contained in:
qiaoqidui 2017-03-25 14:32:37 +08:00
parent 7241646db2
commit fe56fad9e5
1 changed files with 1 additions and 5 deletions

View File

@ -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