[llvm-commits] [compiler-rt] r74588 - /compiler-rt/trunk/lib/enable_execute_stack.c
Daniel Dunbar
daniel at zuster.org
Tue Jun 30 23:06:42 PDT 2009
Author: ddunbar
Date: Wed Jul 1 01:06:42 2009
New Revision: 74588
URL: http://llvm.org/viewvc/llvm-project?rev=74588&view=rev
Log:
Add missing include for getpagesize, and fix a typo.
Modified:
compiler-rt/trunk/lib/enable_execute_stack.c
Modified: compiler-rt/trunk/lib/enable_execute_stack.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/enable_execute_stack.c?rev=74588&r1=74587&r2=74588&view=diff
==============================================================================
--- compiler-rt/trunk/lib/enable_execute_stack.c (original)
+++ compiler-rt/trunk/lib/enable_execute_stack.c Wed Jul 1 01:06:42 2009
@@ -9,6 +9,9 @@
#include <stdint.h>
#include <sys/mman.h>
+#ifndef __APPLE__
+#include <unistd.h>
+#endif
//
@@ -25,7 +28,7 @@
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;
More information about the llvm-commits
mailing list