From d2ec1f3eaac98e693414e46fe236edf140c5e6f0 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 1 Oct 2015 06:46:52 +0000 Subject: [DFS] remove st_blksize in the struct stat --- components/external/SQLite-3.8.1/src/os_rtthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/external/SQLite-3.8.1/src/os_rtthread.c') 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) ){ -- cgit v1.3.1