bandb: sqlite3: use getpagesize() on FreeBSD
This commit is contained in:
parent
0e0d823a5d
commit
8dd5d185e8
1 changed files with 1 additions and 1 deletions
|
@ -31492,7 +31492,7 @@ static int unixDeviceCharacteristics(sqlite3_file *id){
|
||||||
static int unixGetpagesize(void){
|
static int unixGetpagesize(void){
|
||||||
#if OS_VXWORKS
|
#if OS_VXWORKS
|
||||||
return 1024;
|
return 1024;
|
||||||
#elif defined(_BSD_SOURCE)
|
#elif defined(_BSD_SOURCE) || defined(__FreeBSD__)
|
||||||
return getpagesize();
|
return getpagesize();
|
||||||
#else
|
#else
|
||||||
return (int)sysconf(_SC_PAGESIZE);
|
return (int)sysconf(_SC_PAGESIZE);
|
||||||
|
|
Loading…
Reference in a new issue