summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-09-01 12:46:12 +0200
committerCorinna Vinschen <corinna@vinschen.de>2020-09-01 12:46:15 +0200
commitfc352c07ad4b4f51ae57a9797259cef0c5c015cc (patch)
treeaf1a70d588e9bdd0060fc79d26d56f016a43cabf
parent6871c8418d102c8cfc6185757210d5c7f2dd4d46 (diff)
downloadcygnal-fc352c07ad4b4f51ae57a9797259cef0c5c015cc.tar.gz
cygnal-fc352c07ad4b4f51ae57a9797259cef0c5c015cc.tar.bz2
cygnal-fc352c07ad4b4f51ae57a9797259cef0c5c015cc.zip
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>
-rw-r--r--winsup/cygwin/libc/mtx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/winsup/cygwin/libc/mtx.c b/winsup/cygwin/libc/mtx.c
index dca0849cc..f009d19ed 100644
--- a/winsup/cygwin/libc/mtx.c
+++ b/winsup/cygwin/libc/mtx.c
@@ -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;