From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id BC056383F843; Tue, 1 Sep 2020 10:53:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC056383F843 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: mtx_init: drop glibc workaround X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 6871c8418d102c8cfc6185757210d5c7f2dd4d46 X-Git-Newrev: fc352c07ad4b4f51ae57a9797259cef0c5c015cc Message-Id: <20200901105310.BC056383F843@sourceware.org> Date: Tue, 1 Sep 2020 10:53:10 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 10:53:10 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fc352c07ad4b4f51ae57a9797259cef0c5c015cc commit fc352c07ad4b4f51ae57a9797259cef0c5c015cc Author: Corinna Vinschen Date: Tue Sep 1 12:46:12 2020 +0200 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 Diff: --- winsup/cygwin/libc/mtx.c | 7 ------- 1 file changed, 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;