aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-08-29 21:09:33 +0200
committerCorinna Vinschen <corinna@vinschen.de>2020-08-30 14:27:43 +0200
commit8b85b3c3adb85cd1e854de0e35db7c682b945702 (patch)
tree3c07c65a7273215440c5aae3ccdecb3f8b21266e /winsup
parentb9ad0fbf286ada6cdb6b86f351196369cf703c73 (diff)
downloadnewlib-8b85b3c3adb85cd1e854de0e35db7c682b945702.zip
newlib-8b85b3c3adb85cd1e854de0e35db7c682b945702.tar.gz
newlib-8b85b3c3adb85cd1e854de0e35db7c682b945702.tar.bz2
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>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/include/pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h
index 4ef3aea..327926c 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? */