Changes For Bug 352
[oota-llvm.git] / include / llvm / Config / sys / mman.h
1 /*===-- Config/sys/mman.h - Autoconf sys/mman.h wrapper -----------*- C -*-===//
2  * 
3  *                     The LLVM Compiler Infrastructure
4  *
5  * This file was developed by the LLVM research group and is distributed under
6  * the University of Illinois Open Source License. See LICENSE.TXT for details.
7  * 
8  *===----------------------------------------------------------------------===//
9  *
10  * Description:
11  *      This header file includes the headers needed for the mmap() system/
12  *      function call.  It also defines some macros so that all of our calls
13  *      to mmap() can act (more or less) the same, regardless of platform.
14  *
15  *===----------------------------------------------------------------------===//
16  */
17
18 #ifndef _CONFIG_MMAN_H
19 #define _CONFIG_MMAN_H
20
21 #include "llvm/Config/config.h"
22
23 #if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER)
24 #include <sys/mman.h>
25 #endif
26
27 #ifndef HAVE_MMAP_ANONYMOUS
28 #define MAP_ANONYMOUS MAP_ANON
29 #endif
30
31 #endif
32