am 17b9c827
: Merge "Add PROT_* constants not found on windows."
* commit '17b9c82765a325d88fc2e8920f9df3155c5773e2': Add PROT_* constants not found on windows.
This commit is contained in:
commit
f7adcfc8bd
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…
Reference in a new issue