* libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined.

From-SVN: r26980
This commit is contained in:
Mark Kettenis 1999-05-17 22:58:56 +00:00 committed by Jeff Law
parent ef4969e0b6
commit 74c1118e9e
2 changed files with 13 additions and 6 deletions

View 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

View File

@ -31,14 +31,17 @@
#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"