diff options
Diffstat (limited to 'libio')
-rw-r--r-- | libio/Makefile | 2 | ||||
-rw-r--r-- | libio/libio.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libio/Makefile b/libio/Makefile index 1d0ec93..902d63f 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -40,7 +40,7 @@ include ../Makeconfig ifneq (,$(filter %REENTRANT, $(defines))) routines += clearerr_u feof_u ferror_u fputc_u getc_u getchar_u \ - iofflush_u putc_u putchar_u ioflockfile + iofflush_u putc_u putchar_u CPPFLAGS += -D_IO_MTSAFE_IO endif diff --git a/libio/libio.h b/libio/libio.h index 36e839f..e174ee1 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -150,9 +150,7 @@ typedef struct /* Handle lock. */ #ifdef _IO_MTSAFE_IO -#include <pthread.h> -typedef pthread_mutex_t _IO_lock_t; -#define _IO_lock_init PTHREAD_MUTEX_INITIALIZER +#include <stdio-lock.h> #else typedef void _IO_lock_t; #endif |