mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-22 09:50:49 +02:00
refactor: remove macOS MAP_ANONYMOUS work around
This was added to support compilation on macOS 10.10, our minimum required macOS is now 10.15. macOS has also supported it since 10.11. See https://github.com/bitcoin/bitcoin/pull/9063.
This commit is contained in:
parent
31b1c67cf6
commit
112a7ab9a8
@ -235,12 +235,6 @@ PosixLockedPageAllocator::PosixLockedPageAllocator()
|
||||
#endif
|
||||
}
|
||||
|
||||
// Some systems (at least OS X) do not define MAP_ANONYMOUS yet and define
|
||||
// MAP_ANON which is deprecated
|
||||
#ifndef MAP_ANONYMOUS
|
||||
#define MAP_ANONYMOUS MAP_ANON
|
||||
#endif
|
||||
|
||||
void *PosixLockedPageAllocator::AllocateLocked(size_t len, bool *lockingSuccess)
|
||||
{
|
||||
void *addr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user