diff options
author | Michael Gran <spk121@yahoo.com> | 2020-11-23 17:30:13 -0800 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2021-01-21 15:34:03 -0800 |
commit | 449b9bd5e15c4589698055b5fd704abb20840d42 (patch) | |
tree | 712bf93d0e19fcd622eb31762c582e077f4be7f9 /libguile/gen-scmconfig.c | |
parent | d3f7a1d0b7ec2107db917d87bae452b6d877b6ab (diff) | |
download | guile-449b9bd5e15c4589698055b5fd704abb20840d42.tar.gz |
in null threads, don't define sigmask stub when pthread_sigmask does not exist
* libguile/gen-scmconfig.c (main) [HAVE_PTHREAD_SIGMASK]: new output
define SCM_HAVE_PTHREAD_SIGMASK
* libguile/null-threads.h (scm_i_pthread_sigmask) [SCM_HAVE_PTHREAD_SIGMASK]:
make inline function conditional on existence of pthread_sigmask
Diffstat (limited to 'libguile/gen-scmconfig.c')
-rw-r--r-- | libguile/gen-scmconfig.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libguile/gen-scmconfig.c b/libguile/gen-scmconfig.c index 8d77dfaf2..a3c732039 100644 --- a/libguile/gen-scmconfig.c +++ b/libguile/gen-scmconfig.c @@ -1,4 +1,4 @@ -/* Copyright 2003-2013,2018 +/* Copyright 2003-2013,2018,2020 Free Software Foundation, Inc. This file is part of Guile. @@ -20,7 +20,7 @@ /********************************************************************** Description of Guile's public config header mechanics: - ----------------------------------------------------- + ----------------------------------------------------- Guile has three core headers: @@ -153,7 +153,7 @@ main (int argc, char *argv[]) "\n" "#ifndef SCM_SCMCONFIG_H\n" "#define SCM_SCMCONFIG_H\n"); - + /*** various important headers ***/ pf ("\n"); pf ("/* Important headers */\n"); @@ -289,6 +289,12 @@ main (int argc, char *argv[]) pf ("#define SCM_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER %d /* 0 or 1 */\n", SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER); +#ifdef HAVE_PTHREAD_SIGMASK + pf ("#define SCM_HAVE_PTHREAD_SIGMASK 1 /* 0 or 1 */\n"); +#else + pf ("#define SCM_HAVE_PTHREAD_SIGMASK 0 /* 0 or 1 */\n"); +#endif + #ifdef HAVE_GC_PTHREAD_CANCEL pf ("#define SCM_HAVE_GC_PTHREAD_CANCEL 1 /* 0 or 1 */\n"); #else |