Skip to content
Snippets Groups Projects
Commit a0a914d4 authored by Elias Pipping's avatar Elias Pipping
Browse files

Since `getpagesize()` is deprecated, use `sysconf()` instead

parent 481cbd51
No related branches found
No related tags found
1 merge request!43`mprotect` can only be used for `mmap`'ed memory
......@@ -15,7 +15,7 @@ namespace Dune
namespace DebugMemory
{
// system constant for page size
const std::ptrdiff_t page_size = getpagesize();
const std::ptrdiff_t page_size = sysconf(_SC_PAGESIZE);
// implement member functions
void AllocationManager::allocation_error(const char* msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment