aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-03 00:42:01 +0000
committerdrh <drh@noemail.net>2013-04-03 00:42:01 +0000
commit85830a70c2d07e345564211e13e7f5e6182f4135 (patch)
treec97e5ece2bb0e7e2358e7c8b1dabde21dff948a9 /src/os_unix.c
parent48ccef80595731d2c2b6d759455837db3113f647 (diff)
downloadsqlite-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.c2
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);