hrev43901 adds 1 changeset to branch 'master' old head: 6aaadd60dd52c001bf402a6361ff11aa5834cb97 new head: 8d405928217c529dc48673cc8b29000ea2a24452 ---------------------------------------------------------------------------- 8d40592: mmap should try to honour the address hint [ Hamish Morrison <hamish@xxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev43901 Commit: 8d405928217c529dc48673cc8b29000ea2a24452 URL: http://cgit.haiku-os.org/haiku/commit/?id=8d40592 Author: Hamish Morrison <hamish@xxxxxxxxxxx> Date: Mon Mar 26 05:37:20 2012 UTC Committer: Jerome Duval <jerome.duval@xxxxxxxxx> Commit-Date: Thu Mar 29 18:02:37 2012 UTC ---------------------------------------------------------------------------- 1 files changed, 1 insertions(+), 1 deletions(-) src/system/libroot/posix/sys/mman.cpp | 2 +- ---------------------------------------------------------------------------- diff --git a/src/system/libroot/posix/sys/mman.cpp b/src/system/libroot/posix/sys/mman.cpp index a936840..17866ee 100644 --- a/src/system/libroot/posix/sys/mman.cpp +++ b/src/system/libroot/posix/sys/mman.cpp @@ -113,7 +113,7 @@ mmap(void* address, size_t length, int protection, int flags, int fd, int mapping = (flags & MAP_SHARED) != 0 ? REGION_NO_PRIVATE_MAP : REGION_PRIVATE_MAP; - uint32 addressSpec = B_ANY_ADDRESS; + uint32 addressSpec = address == NULL ? B_ANY_ADDRESS : B_BASE_ADDRESS; if ((flags & MAP_FIXED) != 0) addressSpec = B_EXACT_ADDRESS;