LLVM API Documentation
00001 /*===-- Config/sys/mman.h - Autoconf sys/mman.h wrapper -----------*- C -*-===// 00002 * 00003 * The LLVM Compiler Infrastructure 00004 * 00005 * This file was developed by the LLVM research group and is distributed under 00006 * the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 * 00008 *===----------------------------------------------------------------------===// 00009 * 00010 * Description: 00011 * This header file includes the headers needed for the mmap() system/ 00012 * function call. It also defines some macros so that all of our calls 00013 * to mmap() can act (more or less) the same, regardless of platform. 00014 * 00015 *===----------------------------------------------------------------------===// 00016 */ 00017 00018 #ifndef _CONFIG_MMAN_H 00019 #define _CONFIG_MMAN_H 00020 00021 #include "llvm/Config/config.h" 00022 00023 #if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER) 00024 #include <sys/mman.h> 00025 #endif 00026 00027 #ifndef HAVE_MMAP_ANONYMOUS 00028 #define MAP_ANONYMOUS MAP_ANON 00029 #endif 00030 00031 #endif 00032