diff options
Diffstat (limited to 'contrib/libio/libioP.h')
-rw-r--r-- | contrib/libio/libioP.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/contrib/libio/libioP.h b/contrib/libio/libioP.h index d41c466..629e4fd 100644 --- a/contrib/libio/libioP.h +++ b/contrib/libio/libioP.h @@ -23,18 +23,25 @@ other reasons why the executable file might be covered by the GNU General Public License. */ +#ifndef _POSIX_SOURCE +# define _POSIX_SOURCE +#endif + #include <errno.h> #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" |