summaryrefslogtreecommitdiff
path: root/libguile/pthread-threads.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-04-03 22:03:56 +0200
committerAndy Wingo <wingo@pobox.com>2011-04-03 22:03:56 +0200
commit90fed973abf1d55212d7a43f8450f5fe76d9e6a2 (patch)
treef110800d3c7626ce43ebdd62e2bdaff52aad5ac5 /libguile/pthread-threads.h
parent39bed56f670267f66d99f98cd58978871b789557 (diff)
downloadguile-90fed973abf1d55212d7a43f8450f5fe76d9e6a2.tar.gz
pthread-threads.h: only redirect to GC_pthread_sigmask if it is present
* configure.ac: Check for pthread_sigmask. * libguile/gen-scmconfig.c: Create SCM_HAVE_GC_PTHREAD_SIGMASK. * libguile/pthread-threads.h (scm_i_pthread_sigmask): Only redirect to GC_pthread_sigmask if GC_pthread_sigmask is present.
Diffstat (limited to 'libguile/pthread-threads.h')
-rw-r--r--libguile/pthread-threads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libguile/pthread-threads.h b/libguile/pthread-threads.h
index b5fff834d..4c67b1857 100644
--- a/libguile/pthread-threads.h
+++ b/libguile/pthread-threads.h
@@ -57,7 +57,11 @@
/* Signals
*/
+#if SCM_HAVE_GC_PTHREAD_SIGMASK
#define scm_i_pthread_sigmask GC_pthread_sigmask
+#else
+#define scm_i_pthread_sigmask pthread_sigmask
+#endif
/* Mutexes
*/