getpagesize() was removed from OSX (and posix) (#177)
This commit is contained in:
parent
54a3e6fdf7
commit
ce8214bb16
@ -107,7 +107,11 @@ namespace cpptrace {
|
||||
}
|
||||
#else
|
||||
int get_page_size() {
|
||||
return getpagesize();
|
||||
#if defined(_SC_PAGESIZE)
|
||||
return sysconf(_SC_PAGESIZE);
|
||||
#else
|
||||
return getpagesize();
|
||||
#endif
|
||||
}
|
||||
constexpr auto memory_readonly = PROT_READ;
|
||||
constexpr auto memory_readwrite = PROT_READ | PROT_WRITE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user