bandb: sqlite3: use getpagesize() on FreeBSD

This commit is contained in:
Simon Arlott 2016-05-12 12:42:03 +01:00
parent 0e0d823a5d
commit 8dd5d185e8
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -31492,7 +31492,7 @@ static int unixDeviceCharacteristics(sqlite3_file *id){
static int unixGetpagesize(void){
#if OS_VXWORKS
return 1024;
#elif defined(_BSD_SOURCE)
#elif defined(_BSD_SOURCE) || defined(__FreeBSD__)
return getpagesize();
#else
return (int)sysconf(_SC_PAGESIZE);