]> granicus.if.org Git - gc/commit
Enable compilation for Cygwin with MPROTECT_VDB
authorIvan Maidanski <ivmai@mail.ru>
Sat, 19 May 2018 06:50:23 +0000 (09:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 19 May 2018 06:52:17 +0000 (09:52 +0300)
commit6a44e6b5fd93c575684baf7ed576353507f9d7ff
treeff7223103b23167e8b68fbd7e95fb2e95e838f64
parent0c8308269624b02da044dc2878b28c373e1ec786
Enable compilation for Cygwin with MPROTECT_VDB

Note: It just compiles but not working.

* include/private/gc_priv.h [GC_WIN32_THREADS && MPROTECT_VDB]
(GC_set_write_fault_handler): Do not declare if CYGWIN32.
* os_dep.c [MPROTECT_VDB && !DARWIN && !USE_WINALLOC]: Do not include
sys/syscall.h if CYGWIN32.
* os_dep.c [MPROTECT_VDB && CYGWIN32] (CODE_OK): Define (to true).
* os_dep.c [MPROTECT_VDB && GC_WIN32_THREADS]
(GC_set_write_fault_handler): Do not define if CYGWIN32.
* win32_threads.c [MPROTECT_VDB] (GC_register_my_thread_inner): Do not
call GC_gww_dirty_init() and GC_set_write_fault_handler() if CYGWIN32.
include/private/gc_priv.h
os_dep.c
win32_threads.c