diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-08-09 18:59:21 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-08-09 18:59:21 +0000 |
commit | 166b783fa2b1bf6329db080b3a7f922f37914974 (patch) | |
tree | 812ac41c6dfafa5c122785b74ac2dcd4e3b22be5 | |
parent | 8bf1e094893cb24796137b47ee0d46d18d299996 (diff) |
fix build on linux
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78538 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/enable_execute_stack.c | 2 | ||||
-rw-r--r-- | lib/endianness.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/enable_execute_stack.c b/lib/enable_execute_stack.c index aed1b88c5..6f17c9b95 100644 --- a/lib/enable_execute_stack.c +++ b/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/lib/endianness.h b/lib/endianness.h index 8069bacb9..5c212c445 100644 --- a/lib/endianness.h +++ b/lib/endianness.h @@ -72,7 +72,7 @@ /* .. */ -#if defined(__Linux__) +#if defined(__linux__) #include <endian.h> #if __BYTE_ORDER == __BIG_ENDIAN |