diff options
| author | Bernard Xiong <[email protected]> | 2015-10-09 08:56:58 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-10-09 08:56:58 +0800 |
| commit | 369557a981ec0d4928357b62a7559d51d340a1d6 (patch) | |
| tree | d5c14cc5b3ec622da445d9c5c0540451bf512007 /components/external/SQLite-3.8.1/src/os_rtthread.c | |
| parent | 1e4bcaca3e99a5006ed6674cde288c91ffa4dd2e (diff) | |
| parent | a65ee8ac451723e149a5b6d6d43ee1c3ac37549b (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/external/SQLite-3.8.1/src/os_rtthread.c')
| -rw-r--r-- | components/external/SQLite-3.8.1/src/os_rtthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/external/SQLite-3.8.1/src/os_rtthread.c b/components/external/SQLite-3.8.1/src/os_rtthread.c index fb51b53685..6d57ed7098 100644 --- a/components/external/SQLite-3.8.1/src/os_rtthread.c +++ b/components/external/SQLite-3.8.1/src/os_rtthread.c @@ -1728,7 +1728,7 @@ static int fcntlSizeHint(rtthreadFile *pFile, i64 nByte){ ** is the same technique used by glibc to implement posix_fallocate() ** on systems that do not have a real fallocate() system call. */ - int nBlk = buf.st_blksize; /* File-system block size */ + int nBlk = 4096; // no blksize in RT-Thread, use 4096. /* File-system block size */ i64 iWrite; /* Next offset to write to */ if( robust_ftruncate(pFile->h, nSize) ){ |
