diff options
Diffstat (limited to 'libio')
-rw-r--r-- | libio/genops.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 } |