Reinstantiate Cygwin function called `__getreent'

This partially reverts commit 10a30e7 as far as the Cygwin version of
the __getreent function is concerned.  Remove _COMPILING_NEWLIB guard
only allowing to use __getreent inline function when building newlib,
since we wan to use it in Cygwin as well.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Stefan Assmann <sassmann@redhat.com>
This commit is contained in:
Corinna Vinschen
2016-08-18 14:27:05 +02:00
parent 3bbc40af2a
commit 6f3943bca1
2 changed files with 7 additions and 2 deletions

View File

@ -80,6 +80,13 @@ pthread_mutex::no_owner()
return res;
}
#undef __getreent
extern "C" struct _reent *
__getreent ()
{
return &_my_tls.local_clib;
}
extern "C" void
__cygwin_lock_init (_LOCK_T *lock)
{