fix build on linux

llvm-svn: 78538
This commit is contained in:
Nuno Lopes 2009-08-09 18:59:21 +00:00
parent ccf48131d0
commit 1586376f2e
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -72,7 +72,7 @@
/* .. */
#if defined(__Linux__)
#if defined(__linux__)
#include <endian.h>
#if __BYTE_ORDER == __BIG_ENDIAN