forked from OSchip/llvm-project
Use getpagesize() on non-Darwin platforms.
- Presumably we will eventually need configure magic for this stuff. llvm-svn: 74586
This commit is contained in:
parent
3dd1b4b6f2
commit
f118402877
|
|
@ -24,7 +24,8 @@ void __enable_execute_stack(void* addr)
|
|||
// On Darwin, pagesize is always 4096 bytes
|
||||
const uintptr_t pageSize = 4096;
|
||||
#else
|
||||
abort();
|
||||
// FIXME: We should have a configure check for this.
|
||||
const uintptr_t pagesize = getpagesize();
|
||||
#endif
|
||||
const uintptr_t pageAlignMask = ~(pageSize-1);
|
||||
uintptr_t p = (uintptr_t)addr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue