about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-07-31 06:43:44 +0000
committerAndreas Jaeger <aj@suse.de>2001-07-31 06:43:44 +0000
commitc0ed7e09f007917ee576132de5cf2705d387f64c (patch)
treea98a3526eb41c3dc4a41f82f06c51c9a226cff06 /libio
parentcd4fa66a28acab0a7279b137d68a2ccb15047698 (diff)
downloadglibc-c0ed7e09f007917ee576132de5cf2705d387f64c.tar.gz
glibc-c0ed7e09f007917ee576132de5cf2705d387f64c.tar.xz
glibc-c0ed7e09f007917ee576132de5cf2705d387f64c.zip
(flush_cleanup): Guard list_all_lock to allow compilation without threads.
Diffstat (limited to 'libio')
-rw-r--r--libio/genops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/genops.c b/libio/genops.c
index 28bb0f980b..ad6c7f7ea4 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -48,7 +48,9 @@ flush_cleanup (void *not_used)
 {
   if (run_fp != NULL)
     _IO_funlockfile (run_fp);
+#ifdef _IO_MTSAFE_IO
   _IO_lock_unlock (list_all_lock);
+#endif
 }
 
 void