1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix the unix driver to check defined(_BSD_SOURCE) rather than just the plain

_BSD_SOURCE macro.  This fixes the build for OpenBSD.

FossilOrigin-Name: 1dd42ef4144ee08fb4ee1676d934a56a0e34bac2
This commit is contained in:
drh
2013-04-03 00:42:01 +00:00
parent 48ccef8059
commit 85830a70c2
3 changed files with 9 additions and 9 deletions

View File

@@ -4534,7 +4534,7 @@ static void unixUnmapfile(unixFile *pFd){
static int unixGetPagesize(void){
#if HAVE_MREMAP
return 512;
#elif _BSD_SOURCE
#elif defined(_BSD_SOURCE)
return getpagesize();
#else
return (int)sysconf(_SC_PAGESIZE);