summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-02-25 11:59:05 +0100
committerIvan Maidanski <ivmai@mail.ru>2012-02-25 12:04:17 +0100
commit77882bc7dafca0cc7a0e75e5b8646824b4d9d9b8 (patch)
tree00554240af31ac6179a08358475e99d4f835920d /include
parent18fa0ce9f00ab16f26194c60971862a9873f576e (diff)
Fix SIG_SUSPEND definition (Win32)
* include/private/gc_priv.h (SIG_SUSPEND): Do not define for Cygwin and pthreads-w32 (since signals are not used for threads suspend/resume).
Diffstat (limited to 'include')
-rw-r--r--include/private/gc_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index d3d14ca..65570dc 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -2182,7 +2182,8 @@ GC_INNER ptr_t GC_store_debug_info(ptr_t p, word sz, const char *str,
/* some other reason. */
#endif /* PARALLEL_MARK */
-#if defined(GC_PTHREADS) && !defined(NACL) && !defined(SIG_SUSPEND)
+#if defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS) && !defined(NACL) \
+ && !defined(SIG_SUSPEND)
/* We define the thread suspension signal here, so that we can refer */
/* to it in the dirty bit implementation, if necessary. Ideally we */
/* would allocate a (real-time?) signal using the standard mechanism. */