From 8dd5d185e83c1a226cb47bce0b5a77bcf577acbb Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Thu, 12 May 2016 12:42:03 +0100 Subject: [PATCH] bandb: sqlite3: use getpagesize() on FreeBSD --- bandb/sqlite3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandb/sqlite3.c b/bandb/sqlite3.c index 1954637c..541237fb 100644 --- a/bandb/sqlite3.c +++ b/bandb/sqlite3.c @@ -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);