public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: pthread_yield: Add BSD visibility Date: Sun, 30 Aug 2020 12:29:59 +0000 (GMT) [thread overview] Message-ID: <20200830123000.03399385783B@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8b85b3c3adb85cd1e854de0e35db7c682b945702 commit 8b85b3c3adb85cd1e854de0e35db7c682b945702 Author: Corinna Vinschen <corinna@vinschen.de> 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 <corinna@vinschen.de> 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? */
reply other threads:[~2020-08-30 12:29 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200830123000.03399385783B@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).