summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-02-12 12:27:56 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-14 11:39:04 +0300
commit142596984109344ed880cf550dec0524eb1df6a6 (patch)
tree0827bc6668390c1634089788206def6768d5a04d
parentb8b3712bce2fbb20dae0d85fed0fd045195b2066 (diff)
downloadbdwgc-142596984109344ed880cf550dec0524eb1df6a6.tar.gz
Ensure GC_NO_PTHREAD_SIGMASK defined if no GC_pthread_sigmask prototype
(a cherry-pick of commit 272e61e46 from 'master') * include/gc_pthread_redirects.h [!GC_PTHREAD_REDIRECTS_ONLY && !GC_NO_PTHREAD_SIGMASK && !(GC_PTHREAD_SIGMASK_NEEDED || _BSD_SOURCE || _GNU_SOURCE || _POSIX_C_SOURCE>=199506L || _XOPEN_SOURCE>=500)] (GC_NO_PTHREAD_SIGMASK): Define macro.
-rw-r--r--include/gc_pthread_redirects.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gc_pthread_redirects.h b/include/gc_pthread_redirects.h
index b235334a..c7e72fe6 100644
--- a/include/gc_pthread_redirects.h
+++ b/include/gc_pthread_redirects.h
@@ -61,6 +61,8 @@
|| (_POSIX_C_SOURCE >= 199506L) || (_XOPEN_SOURCE >= 500)
GC_API int GC_pthread_sigmask(int /* how */, const sigset_t *,
sigset_t * /* oset */);
+# else
+# define GC_NO_PTHREAD_SIGMASK
# endif
# endif /* !GC_NO_PTHREAD_SIGMASK */