From c6cd62b351533f6410e5a3dac1c39ac5cb68986a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 1 Jul 2009 06:06:42 +0000 Subject: [PATCH] Add missing include for getpagesize, and fix a typo. llvm-svn: 74588 --- compiler-rt/lib/enable_execute_stack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/enable_execute_stack.c b/compiler-rt/lib/enable_execute_stack.c index 534ce2f075a0..15ab03fd73bf 100644 --- a/compiler-rt/lib/enable_execute_stack.c +++ b/compiler-rt/lib/enable_execute_stack.c @@ -9,6 +9,9 @@ #include #include +#ifndef __APPLE__ +#include +#endif // @@ -25,7 +28,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 = getpagesize(); #endif const uintptr_t pageAlignMask = ~(pageSize-1); uintptr_t p = (uintptr_t)addr;