mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-08 10:09:32 +08:00
Cygwin: mtx_init: drop glibc workaround
GLibc will change this code in the forseeable future to align more with FreeBSD, so this hack is not actually desired. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
c319a3c9f1
commit
c35c798429
@ -54,13 +54,6 @@ mtx_init(mtx_t *mtx, int type)
|
||||
case mtx_timed:
|
||||
mt = PTHREAD_MUTEX_NORMAL;
|
||||
break;
|
||||
#ifdef __CYGWIN__
|
||||
/* This is a hack to support apps running under GLibc. mtx_plain is
|
||||
defined as 0 in GLibc, so apps calling mtx_init with just the
|
||||
mtx_recursive flag don't fail, as they should. Rather they run
|
||||
as if mtx_plain | mtx_recursive has been given as type. */
|
||||
case mtx_recursive:
|
||||
#endif
|
||||
case mtx_plain | mtx_recursive:
|
||||
case mtx_timed | mtx_recursive:
|
||||
mt = PTHREAD_MUTEX_RECURSIVE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user