From 92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 8 Jun 2000 09:01:34 +0000 Subject: * libio/genops.c (_IO_list_lock): Only compile body if we're thread safe. (_IO_list_unlock): Likewise. (_IO_list_resetlock): Likewise. --- libio/genops.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libio/genops.c b/libio/genops.c index fb4f08bd3f..bdbde0ce4b 100644 --- a/libio/genops.c +++ b/libio/genops.c @@ -1057,19 +1057,25 @@ _IO_iter_file(iter) void _IO_list_lock() { +#ifdef _IO_MTSAFE_IO _IO_lock_lock (list_all_lock); +#endif } void _IO_list_unlock() { - _IO_lock_unlock (list_all_lock); +#ifdef _IO_MTSAFE_IO + _IO_lock_unlock (list_all_lock); +#endif } void _IO_list_resetlock() { +#ifdef _IO_MTSAFE_IO _IO_lock_init (list_all_lock); +#endif } -- cgit v1.2.3