summaryrefslogtreecommitdiff
path: root/libguile/scmsigs.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-08-27 23:05:44 +0200
committerLudovic Courtès <ludo@gnu.org>2008-08-27 23:05:44 +0200
commit70eca635571bce82123fcb6f72579ee741c50b2c (patch)
tree7893cea9fdcd7d42a11d9eded49c80cdf15034e4 /libguile/scmsigs.c
parentf85ea2a85fcdd051f432964806f044c0301d0945 (diff)
downloadguile-70eca635571bce82123fcb6f72579ee741c50b2c.tar.gz
Fix builds `--without-threads'.
Diffstat (limited to 'libguile/scmsigs.c')
-rw-r--r--libguile/scmsigs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index d05bdac67..3a8596a6d 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -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);
}