mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
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.
This commit is contained in:
parent
39bed56f67
commit
90fed973ab
3 changed files with 11 additions and 1 deletions
|
@ -1238,7 +1238,7 @@ save_LIBS="$LIBS"
|
||||||
LIBS="$BDW_GC_LIBS $LIBS"
|
LIBS="$BDW_GC_LIBS $LIBS"
|
||||||
CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
|
CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
|
||||||
|
|
||||||
AC_CHECK_FUNCS([GC_do_blocking GC_call_with_gc_active GC_pthread_exit GC_pthread_cancel GC_allow_register_threads])
|
AC_CHECK_FUNCS([GC_do_blocking GC_call_with_gc_active GC_pthread_exit GC_pthread_cancel GC_allow_register_threads GC_pthread_sigmask])
|
||||||
|
|
||||||
# Though the `GC_do_blocking ()' symbol is present in GC 7.1, it is not
|
# Though the `GC_do_blocking ()' symbol is present in GC 7.1, it is not
|
||||||
# declared, and has a different type (returning void instead of
|
# declared, and has a different type (returning void instead of
|
||||||
|
|
|
@ -330,6 +330,12 @@ main (int argc, char *argv[])
|
||||||
pf ("#define SCM_HAVE_GC_PTHREAD_EXIT 0 /* 0 or 1 */\n");
|
pf ("#define SCM_HAVE_GC_PTHREAD_EXIT 0 /* 0 or 1 */\n");
|
||||||
#endif
|
#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 ("\n\n/*** File system access ***/\n");
|
||||||
|
|
||||||
pf ("/* Define to 1 if `struct dirent64' is available. */\n");
|
pf ("/* Define to 1 if `struct dirent64' is available. */\n");
|
||||||
|
|
|
@ -57,7 +57,11 @@
|
||||||
|
|
||||||
/* Signals
|
/* Signals
|
||||||
*/
|
*/
|
||||||
|
#if SCM_HAVE_GC_PTHREAD_SIGMASK
|
||||||
#define scm_i_pthread_sigmask GC_pthread_sigmask
|
#define scm_i_pthread_sigmask GC_pthread_sigmask
|
||||||
|
#else
|
||||||
|
#define scm_i_pthread_sigmask pthread_sigmask
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Mutexes
|
/* Mutexes
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue