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/null-threads.h | |
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/null-threads.h')
-rw-r--r-- | libguile/null-threads.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/null-threads.h b/libguile/null-threads.h index 88926fa2f..be72346f0 100644 --- a/libguile/null-threads.h +++ b/libguile/null-threads.h @@ -1,7 +1,7 @@ #ifndef SCM_NULL_THREADS_H #define SCM_NULL_THREADS_H -/* Copyright 2005-2006,2010,2018 +/* Copyright 2005-2006,2010,2018,2020 Free Software Foundation, Inc. This file is part of Guile. @@ -83,11 +83,13 @@ scm_i_sched_yield (void) /* Signals */ +#if SCM_HAVE_PTHREAD_SIGMASK == 1 static inline int scm_i_pthread_sigmask (int how, const sigset_t *set, sigset_t *oldset) { return sigprocmask (how, set, oldset); } +#endif /* Mutexes */ |