diff options
author | Andreas Jaeger <aj@suse.de> | 2000-06-08 09:01:34 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-06-08 09:01:34 +0000 |
commit | 92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd (patch) | |
tree | a1b583d4799d035879aef935ab2dee1b260a9819 | |
parent | 1b579f91677bbbce21ed8d20801eb6ac041983d8 (diff) | |
download | glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.tar.gz glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.tar.xz glibc-92cfdd8a9eeac6d3d7131044cfc9937750a7e5fd.zip |
* libio/genops.c (_IO_list_lock): Only compile body if we're
thread safe. (_IO_list_unlock): Likewise. (_IO_list_resetlock): Likewise.
-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 } |