Skip to content

Commit 112a7ab

Browse files
committed
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 bitcoin/bitcoin#9063.
1 parent 31b1c67 commit 112a7ab

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/support/lockedpool.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,6 @@ PosixLockedPageAllocator::PosixLockedPageAllocator()
235235
#endif
236236
}
237237

238-
// Some systems (at least OS X) do not define MAP_ANONYMOUS yet and define
239-
// MAP_ANON which is deprecated
240-
#ifndef MAP_ANONYMOUS
241-
#define MAP_ANONYMOUS MAP_ANON
242-
#endif
243-
244238
void *PosixLockedPageAllocator::AllocateLocked(size_t len, bool *lockingSuccess)
245239
{
246240
void *addr;

0 commit comments

Comments
 (0)