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 | 1586376f2eb84f07797930d779119dda7b618c73 (patch) | |
tree | a81a517eb9865760b35b68a15f83255c0ad8112a /compiler-rt/lib/enable_execute_stack.c | |
parent | ccf48131d045e9baf92d215a0b6ca79cafee89b4 (diff) | |
download | bcm5719-llvm-1586376f2eb84f07797930d779119dda7b618c73.tar.gz bcm5719-llvm-1586376f2eb84f07797930d779119dda7b618c73.zip |
fix build on linux
llvm-svn: 78538
Diffstat (limited to 'compiler-rt/lib/enable_execute_stack.c')
-rw-r--r-- | compiler-rt/lib/enable_execute_stack.c | 2 |
1 files changed, 1 insertions, 1 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; |