diff options
-rw-r--r-- | compiler-rt/lib/enable_execute_stack.c | 2 | ||||
-rw-r--r-- | compiler-rt/lib/endianness.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/enable_execute_stack.c b/compiler-rt/lib/enable_execute_stack.c index aed1b88c514..6f17c9b9528 100644 --- a/compiler-rt/lib/enable_execute_stack.c +++ b/compiler-rt/lib/enable_execute_stack.c @@ -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; diff --git a/compiler-rt/lib/endianness.h b/compiler-rt/lib/endianness.h index 8069bacb992..5c212c4453f 100644 --- a/compiler-rt/lib/endianness.h +++ b/compiler-rt/lib/endianness.h @@ -72,7 +72,7 @@ /* .. */ -#if defined(__Linux__) +#if defined(__linux__) #include <endian.h> #if __BYTE_ORDER == __BIG_ENDIAN |