_IO_lock_unlock (fwd)

Andreas Jaeger aj@suse.de
Mon Jul 30 23:43:00 GMT 2001


Robert Bernecky <bernecky@acm.org> writes:

> Can someone please let me know how this has been resolved?

You misunderstood me - it worked in 2000 but it has been broken in the
meantime.

I just checked it myself and committed the appended fix for this,

Andreas

2001-07-31  Andreas Jaeger  <aj@suse.de>

	* libio/genops.c (flush_cleanup): Guard list_all_lock to allow
	compilation without threads.

============================================================
Index: libio/genops.c
--- libio/genops.c	2001/07/24 04:16:33	1.48
+++ libio/genops.c	2001/07/31 06:41:24
@@ -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
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list