From 112a7ab9a8e4c96f5750ac3b929b433d8507354c Mon Sep 17 00:00:00 2001 From: fanquake Date: Sun, 3 Apr 2022 13:02:44 +0100 Subject: [PATCH] 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. --- src/support/lockedpool.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp index 6965f402536..ea1a27c6f69 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;