Files
third_party_libunwind/include/mingw/sys/mman.h
T
chang_jian b4885b363d 加入mingw兼容文件
Signed-off-by: chang_jian <chang_jian@hoperun.com>
2021-11-14 20:51:24 -05:00

27 lines
596 B
C
Executable File

// This is an incomplete & imprecice implementation of the Posix
// standard file by the same name
#ifndef __MINGW_SYS_MMAN__
#define __MINGW_SYS_MMAN__
#ifdef MINGW // Only for cross compilation to mingw
#include <sys/types.h>
#if !HAVE_MMAP
#define MAP_FAILED (void *) -1
#define MAP_ANONYMOUS 1
#define MAP_ANON MAP_ANONYMOUS
#define MAP_PRIVATE 2
#define PROT_NONE 0
#define PROT_READ 1
#define PROT_WRITE 2
#define PROT_EXEC 4
void* mmap(void *, size_t, int, int, int, size_t);
int munmap(void *, size_t);
#endif
#endif // MINGW
#endif