[llvm-commits] [compiler-rt] r78538 - in /compiler-rt/trunk/lib: enable_execute_stack.c endianness.h

Nuno Lopes nunoplopes at sapo.pt
Sun Aug 9 11:59:21 PDT 2009


Author: nlopes
Date: Sun Aug  9 13:59:21 2009
New Revision: 78538

URL: http://llvm.org/viewvc/llvm-project?rev=78538&view=rev
Log:
fix build on linux

Modified:
    compiler-rt/trunk/lib/enable_execute_stack.c
    compiler-rt/trunk/lib/endianness.h

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=78538&r1=78537&r2=78538&view=diff

==============================================================================
--- compiler-rt/trunk/lib/enable_execute_stack.c (original)
+++ compiler-rt/trunk/lib/enable_execute_stack.c Sun Aug  9 13:59:21 2009
@@ -30,7 +30,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 = sysconf(_SC_PAGESIZE);
 #endif
 	const uintptr_t pageAlignMask = ~(pageSize-1);
 	uintptr_t p = (uintptr_t)addr;

Modified: compiler-rt/trunk/lib/endianness.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/endianness.h?rev=78538&r1=78537&r2=78538&view=diff

==============================================================================
--- compiler-rt/trunk/lib/endianness.h (original)
+++ compiler-rt/trunk/lib/endianness.h Sun Aug  9 13:59:21 2009
@@ -72,7 +72,7 @@
 
 /* .. */
 
-#if defined(__Linux__)
+#if defined(__linux__)
 #include <endian.h>
 
 #if __BYTE_ORDER == __BIG_ENDIAN





More information about the llvm-commits mailing list