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