From 0b400c5dd0830b5ddbe45dec38bbcc6dedaaf0ea Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 5 Apr 2017 18:19:26 +0300 Subject: [PATCH] mdbx: fix posix mdbx_mmap(). --- src/osal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osal.c b/src/osal.c index 2bac64e1..40e93178 100644 --- a/src/osal.c +++ b/src/osal.c @@ -599,7 +599,7 @@ int mdbx_mmap(void **address, size_t length, int rw, mdbx_filehandle_t fd) { CloseHandle(h); return rc; #else - *address = mmap(address, length, rw ? PROT_READ | PROT_WRITE : PROT_READ, + *address = mmap(NULL, length, rw ? PROT_READ | PROT_WRITE : PROT_READ, MAP_SHARED, fd, 0); return (*address != MAP_FAILED) ? MDB_SUCCESS : errno; #endif