forked from OSchip/llvm-project
parent
ccf48131d0
commit
1586376f2e
|
@ -30,7 +30,7 @@ void __enable_execute_stack(void* addr)
|
|||
const uintptr_t pageSize = 4096;
|
||||
#else
|
||||
/* FIXME: We should have a configure check for this. */
|
||||
const uintptr_t pageSize = getpagesize();
|
||||
const uintptr_t pageSize = sysconf(_SC_PAGESIZE);
|
||||
#endif
|
||||
const uintptr_t pageAlignMask = ~(pageSize-1);
|
||||
uintptr_t p = (uintptr_t)addr;
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
|
||||
/* .. */
|
||||
|
||||
#if defined(__Linux__)
|
||||
#if defined(__linux__)
|
||||
#include <endian.h>
|
||||
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
|
|
Loading…
Reference in New Issue