+1999-05-17 Mark Kettenis <kettenis@gnu.org>
+
+ * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
+
1999-05-12 Jason Merrill <jason@yorick.cygnus.com>
* configure.in (compiler_name): Don't do the skip-this-dir thing
#ifndef __set_errno
# define __set_errno(Val) errno = (Val)
#endif
-#if defined __GLIBC__ && __GLIBC__ >= 2
-# if __GLIBC_MINOR__ > 0
-# include <bits/libc-lock.h>
+
+#ifdef _IO_MTSAFE_IO
+# if defined __GLIBC__ && __GLIBC__ >= 2
+# if __GLIBC_MINOR__ > 0
+# include <bits/libc-lock.h>
+# else
+# include <libc-lock.h>
+# endif
# else
-# include <libc-lock.h>
-# endif
-#else
/*# include <comthread.h>*/
+# endif
#endif
#include "iolibio.h"