Skip to content

Commit

Permalink
Move name to within #ifdef block
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Apr 5, 2022
1 parent 1fa8bde commit 225cc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/os_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ void OS::free_locked_pages(const std::vector<void*>& pages)

void OS::page_named(void* page, size_t size)
{
static constexpr char name[] = "Botan";
#if defined(BOTAN_TARGET_OS_HAS_PRCTL)
static constexpr char name[] = "Botan mlock pool";
int r = prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, reinterpret_cast<uintptr_t>(page), size, name);
BOTAN_UNUSED(r);
#else
Expand Down

0 comments on commit 225cc9a

Please sign in to comment.