Add PROT_* constants not found on windows.
Change-Id: Ic515363ed66dfb2d8e1a6fdfa274508b3a91311d
This commit is contained in:
parent
eb8d73b675
commit
0dbce4564b
1 changed files with 8 additions and 0 deletions
|
|
@ -18,7 +18,15 @@
|
|||
#define _BACKTRACE_BACKTRACE_MAP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#ifdef USE_MINGW
|
||||
// MINGW does not define these constants.
|
||||
#define PROT_NONE 0
|
||||
#define PROT_READ 0x1
|
||||
#define PROT_WRITE 0x2
|
||||
#define PROT_EXEC 0x4
|
||||
#else
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue