diff options
author | fanquake <fanquake@gmail.com> | 2022-04-03 13:02:44 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-03 13:04:29 +0100 |
commit | 112a7ab9a8e4c96f5750ac3b929b433d8507354c (patch) | |
tree | 4bde684f8f05f4a6eaac0b84b3a0a8b650cf412f /src/support/lockedpool.cpp | |
parent | 31b1c67cf6d74dd655fafe97e36868b3f8752280 (diff) |
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.
Diffstat (limited to 'src/support/lockedpool.cpp')
-rw-r--r-- | src/support/lockedpool.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp index 6965f40253..ea1a27c6f6 100644 --- a/src/support/lockedpool.cpp +++ b/src/support/lockedpool.cpp @@ -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; |