From 74c1118e9e84555430b3551d6722619e0c93c8b2 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 17 May 1999 22:58:56 +0000 Subject: [PATCH] * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined. From-SVN: r26980 --- libio/ChangeLog | 4 ++++ libio/libioP.h | 15 +++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/libio/ChangeLog b/libio/ChangeLog index aa546a46c4c..4bcc68412de 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,7 @@ +1999-05-17 Mark Kettenis + + * libioP.h: Only include libc-lock.h if _IO_MTSAFE_IO is defined. + 1999-05-12 Jason Merrill * configure.in (compiler_name): Don't do the skip-this-dir thing diff --git a/libio/libioP.h b/libio/libioP.h index 36fa1e007de..629e4fd8cf6 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -31,14 +31,17 @@ #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif -#if defined __GLIBC__ && __GLIBC__ >= 2 -# if __GLIBC_MINOR__ > 0 -# include + +#ifdef _IO_MTSAFE_IO +# if defined __GLIBC__ && __GLIBC__ >= 2 +# if __GLIBC_MINOR__ > 0 +# include +# else +# include +# endif # else -# include -# endif -#else /*# include */ +# endif #endif #include "iolibio.h"