* libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 May 1999 22:58:56 +0000 (22:58 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 May 1999 22:58:56 +0000 (22:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26980 138bc75d-0d04-0410-961f-82ee72b054a4

libio/ChangeLog
libio/libioP.h

index aa546a4..4bcc684 100644 (file)
@@ -1,3 +1,7 @@
+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
index 36fa1e0..629e4fd 100644 (file)
 #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"