diff options
author | drh <drh@noemail.net> | 2013-04-03 00:42:01 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-04-03 00:42:01 +0000 |
commit | 85830a70c2d07e345564211e13e7f5e6182f4135 (patch) | |
tree | c97e5ece2bb0e7e2358e7c8b1dabde21dff948a9 /src/os_unix.c | |
parent | 48ccef80595731d2c2b6d759455837db3113f647 (diff) | |
download | sqlite-85830a70c2d07e345564211e13e7f5e6182f4135.tar.gz sqlite-85830a70c2d07e345564211e13e7f5e6182f4135.zip |
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
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 581afdbc9..6ca99fa53 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -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); |