Use getpagesize() on non-Darwin platforms.
 - Presumably we will eventually need configure magic for this stuff.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@74586 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/enable_execute_stack.c b/lib/enable_execute_stack.c
index 2c18782..534ce2f 100644
--- a/lib/enable_execute_stack.c
+++ b/lib/enable_execute_stack.c
@@ -24,7 +24,8 @@
 	// On Darwin, pagesize is always 4096 bytes
 	const uintptr_t pageSize = 4096;
 #else
-	abort();
+        // FIXME: We should have a configure check for this.
+        const uintptr_t pagesize = getpagesize();
 #endif
 	const uintptr_t pageAlignMask = ~(pageSize-1);
 	uintptr_t p = (uintptr_t)addr;