From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 03399385783B; Sun, 30 Aug 2020 12:29:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03399385783B 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: pthread_yield: Add BSD visibility X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: b9ad0fbf286ada6cdb6b86f351196369cf703c73 X-Git-Newrev: 8b85b3c3adb85cd1e854de0e35db7c682b945702 Message-Id: <20200830123000.03399385783B@sourceware.org> Date: Sun, 30 Aug 2020 12:29:59 +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: Sun, 30 Aug 2020 12:30:00 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8b85b3c3adb85cd1e854de0e35db7c682b945702 commit 8b85b3c3adb85cd1e854de0e35db7c682b945702 Author: Corinna Vinschen Date: Sat Aug 29 21:09:33 2020 +0200 Cygwin: pthread_yield: Add BSD visibility pthread_yield was only declared under GNU visibility, but the function should be available under BSD visibility as well. Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/include/pthread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index 4ef3aeab7..327926ced 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -234,6 +234,8 @@ int pthread_setname_np (pthread_t, const char *) __attribute__((__nonnull__(2))) int pthread_sigqueue (pthread_t *, int, const union sigval); int pthread_timedjoin_np (pthread_t, void **, const struct timespec *); int pthread_tryjoin_np (pthread_t, void **); +#endif +#if __BSD_VISIBLE || __GNU_VISIBLE int pthread_yield (void); #endif #if __MISC_VISIBLE /* HP-UX, others? */