summaryrefslogtreecommitdiff
path: root/libvtv/vtv_malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvtv/vtv_malloc.h')
-rw-r--r--libvtv/vtv_malloc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libvtv/vtv_malloc.h b/libvtv/vtv_malloc.h
index 55f5fe8022b..2af565f6e66 100644
--- a/libvtv/vtv_malloc.h
+++ b/libvtv/vtv_malloc.h
@@ -95,4 +95,11 @@ extern void __vtv_malloc_stats (void);
extern void __vtv_malloc_dump_stats (void);
extern int __vtv_count_mmapped_pages (void);
+#if defined (__CYGWIN__) || defined (__MINGW32__)
+extern "C" int mprotect (void *addr, int len, int prot);
+
+ #define PROT_READ 0x1
+ #define PROT_WRITE 0x2
+#endif
+
#endif /* vtv_malloc.h */