]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: pthread_yield: Add BSD visibility
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 29 Aug 2020 19:09:33 +0000 (21:09 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Sun, 30 Aug 2020 12:27:43 +0000 (14:27 +0200)
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>
winsup/cygwin/include/pthread.h

index 4ef3aeab771dcc945fd2f3a27e703f7f7e9b91bb..327926ced153174d95ac3a80603abfcbdce7b8df 100644 (file)
@@ -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? */
This page took 0.03409 seconds and 5 git commands to generate.