mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 18:50:21 +02:00
Fix builds `--without-threads'.
This commit is contained in:
parent
f85ea2a85f
commit
70eca63557
5 changed files with 23 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2008-08-27 Ludovic Courtès <ludo@gnu.org>
|
||||
|
||||
Fix builds `--without-threads'. Reported by Han-Wen Nienhuys
|
||||
<hanwen@xs4all.nl>.
|
||||
|
||||
* scmsigs.c (scm_i_close_signal_pipe): Don't refer to
|
||||
`signal_pipe' unless `SCM_USE_PTHREAD_THREADS' is true.
|
||||
* threads.c (scm_leave_guile_cleanup): Mark as `SCM_UNUSED'.
|
||||
|
||||
2008-08-25 Ludovic Courtès <ludo@gnu.org>
|
||||
|
||||
* Makefile.am (AM_CFLAGS): New.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -680,8 +680,10 @@ scm_i_close_signal_pipe()
|
|||
been launched at this point, it never will be before shutdown. */
|
||||
scm_i_pthread_mutex_lock (&signal_delivery_thread_mutex);
|
||||
|
||||
#if SCM_USE_PTHREAD_THREADS
|
||||
if (scm_i_signal_delivery_thread != NULL)
|
||||
close (signal_pipe[1]);
|
||||
#endif
|
||||
|
||||
scm_i_pthread_mutex_unlock (&signal_delivery_thread_mutex);
|
||||
}
|
||||
|
|
|
@ -784,7 +784,7 @@ scm_with_guile (void *(*func)(void *), void *data)
|
|||
scm_i_default_dynamic_state);
|
||||
}
|
||||
|
||||
static void
|
||||
SCM_UNUSED static void
|
||||
scm_leave_guile_cleanup (void *x)
|
||||
{
|
||||
scm_leave_guile ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue