From: Corinna Vinschen Date: Sat, 29 Aug 2020 19:09:33 +0000 (+0200) Subject: Cygwin: pthread_yield: Add BSD visibility X-Git-Tag: newlib-4.0.0~128 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8b85b3c3adb85cd1e854de0e35db7c682b945702;p=newlib-cygwin.git 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 --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? */