[llvm-commits] [poolalloc] r131092 - /poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c

John Criswell criswell at uiuc.edu
Mon May 9 12:55:01 PDT 2011


Author: criswell
Date: Mon May  9 14:55:01 2011
New Revision: 131092

URL: http://llvm.org/viewvc/llvm-project?rev=131092&view=rev
Log:
Fixed compilation on Mac OS X by defining the MAP_ANONYMOUS macro to be
equivalent to the MAP_ANON macro.

Modified:
    poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c

Modified: poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c?rev=131092&r1=131091&r2=131092&view=diff
==============================================================================
--- poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c (original)
+++ poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c Mon May  9 14:55:01 2011
@@ -8,6 +8,13 @@
 #define DEBUG (0)
 #define SIZE ((size_t)(70368744177664))
 
+/*
+ * Do some macro magic to get mmap macros defined properly on all platforms.
+ */
+#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
+# define MAP_ANONYMOUS MAP_ANON
+#endif /* defined(MAP_ANON) && !defined(MAP_ANONYMOUS) */
+
 uint8_t *shadow_begin;
 
 uintptr_t maskAddress(void *ptr) {





More information about the llvm-commits mailing list