diff options
author | Andy Wingo <wingo@pobox.com> | 2011-04-03 22:03:56 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-04-03 22:03:56 +0200 |
commit | 90fed973abf1d55212d7a43f8450f5fe76d9e6a2 (patch) | |
tree | f110800d3c7626ce43ebdd62e2bdaff52aad5ac5 /libguile/gen-scmconfig.c | |
parent | 39bed56f670267f66d99f98cd58978871b789557 (diff) | |
download | guile-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/gen-scmconfig.c')
-rw-r--r-- | libguile/gen-scmconfig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libguile/gen-scmconfig.c b/libguile/gen-scmconfig.c index 97066b78e..5834346c7 100644 --- a/libguile/gen-scmconfig.c +++ b/libguile/gen-scmconfig.c @@ -330,6 +330,12 @@ main (int argc, char *argv[]) pf ("#define SCM_HAVE_GC_PTHREAD_EXIT 0 /* 0 or 1 */\n"); #endif +#ifdef HAVE_GC_PTHREAD_SIGMASK + pf ("#define SCM_HAVE_GC_PTHREAD_SIGMASK 1 /* 0 or 1 */\n"); +#else + pf ("#define SCM_HAVE_GC_PTHREAD_SIGMASK 0 /* 0 or 1 */\n"); +#endif + pf ("\n\n/*** File system access ***/\n"); pf ("/* Define to 1 if `struct dirent64' is available. */\n"); |