Deleted Added
full compact
41a42,45
> #ifdef _THREAD_SAFE
> #include <pthread.h>
> #include "pthread_private.h"
> #endif
42a47
> int
46c51,59
< return (__sgetc(fp));
---
> int retval;
> #ifdef _THREAD_SAFE
> _thread_flockfile(fp,__FILE__,__LINE__);
> #endif
> retval = __sgetc(fp);
> #ifdef _THREAD_SAFE
> _thread_funlockfile(fp);
> #endif
> return (retval);