1*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/mmap by iffe version 2012-07-17 : : */
2da2e3ebdSchin#ifndef _def_mmap_ast
3da2e3ebdSchin#define _def_mmap_ast	1
4da2e3ebdSchin#define _sys_types	1	/* #include <sys/types.h> ok */
5da2e3ebdSchin#define _sys_mman	1	/* #include <sys/mman.h> ok */
6da2e3ebdSchin#define _lib_mmap	1	/* standard mmap interface that works */
7da2e3ebdSchin#define _lib_mmap64	1	/* mmap64 interface and implementation work */
8da2e3ebdSchin#define _mmap_anon	1	/* use mmap MAP_ANON to get raw memory */
9da2e3ebdSchin#define _mmap_devzero	1	/* use mmap on /dev/zero to get raw memory */
10da2e3ebdSchin
11da2e3ebdSchin/* some systems get it wrong but escape concise detection */
12da2e3ebdSchin#ifndef _NO_MMAP
13da2e3ebdSchin#if __CYGWIN__
14da2e3ebdSchin#define _NO_MMAP	1
15da2e3ebdSchin#endif
16da2e3ebdSchin#endif
17da2e3ebdSchin
18da2e3ebdSchin#if _NO_MMAP
19da2e3ebdSchin#undef	_lib_mmap
20da2e3ebdSchin#undef	_lib_mmap64
21da2e3ebdSchin#undef	_mmap_anon
22da2e3ebdSchin#undef	_mmap_devzero
23da2e3ebdSchin#undef	_mmap_worthy
24da2e3ebdSchin#endif
25da2e3ebdSchin
26da2e3ebdSchin#endif
27