diff options
author | Shih-wei Liao <sliao@google.com> | 2012-05-10 00:45:57 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2012-05-10 00:45:57 -0700 |
commit | b1b06417a6534ce8b6c9c20f39a0aaecaa8a6891 (patch) | |
tree | 574855b581a1756948c07296e60fc2020adefb6b /host | |
parent | 3b53a8f9b0d6ef490effa08104301fb6aa341765 (diff) | |
download | external_llvm-b1b06417a6534ce8b6c9c20f39a0aaecaa8a6891.zip external_llvm-b1b06417a6534ce8b6c9c20f39a0aaecaa8a6891.tar.gz external_llvm-b1b06417a6534ce8b6c9c20f39a0aaecaa8a6891.tar.bz2 |
Fix Mac breakage properly: Configuration of MMAP_ANON and HAVE_MALLINFO
Change-Id: I92d44cb5fe428efeb739eb6f4207a10f6dc30214
Diffstat (limited to 'host')
-rw-r--r-- | host/include/llvm/Config/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h index aa090ba..defd64b 100644 --- a/host/include/llvm/Config/config.h +++ b/host/include/llvm/Config/config.h @@ -230,7 +230,11 @@ /* #undef HAVE_MACH_O_DYLD_H */ /* Define if mallinfo() is available on this platform. */ +#if !defined(_APPLE_) +#define HAVE_MALLINFO 1 +#else /* #undef HAVE_MALLINFO */ +#endif /* Define to 1 if you have the <malloc.h> header file. */ /* #define HAVE_MALLOC_H 1 */ /* Defined by AndroidConfig.h */ @@ -264,7 +268,11 @@ /* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if it uses MAP_ANON */ +#if !defined(_APPLE_) +#define HAVE_MMAP_ANONYMOUS +#else /* #undef HAVE_MMAP_ANONYMOUS */ +#endif /* Define if mmap() can map files into memory */ #define HAVE_MMAP_FILE |