https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=12c08cc8a26a6a67abab7716280b0f3a3f31f846

commit 12c08cc8a26a6a67abab7716280b0f3a3f31f846
Author:     Corinna Vinschen <cori...@vinschen.de>
AuthorDate: Tue Jun 24 10:16:40 2025 +0200
Commit:     Corinna Vinschen <cori...@vinschen.de>
CommitDate: Tue Jun 24 10:19:01 2025 +0200

    Cygwin: fix visibility of symbols introduced with POSIX Issue 8
    
    This patch just follows the previous 5 patches changing newlib headers
    for the matching symbols in Cygwin headers.
    
    Signed-off-by: Corinna Vinschen <cori...@vinschen.de>

Diff:
---
 winsup/cygwin/include/pthread.h   | 8 ++++----
 winsup/cygwin/include/semaphore.h | 2 +-
 winsup/cygwin/include/sys/poll.h  | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h
index b2154651cece..01cabee8de0d 100644
--- a/winsup/cygwin/include/pthread.h
+++ b/winsup/cygwin/include/pthread.h
@@ -140,7 +140,7 @@ int pthread_cond_broadcast (pthread_cond_t *);
 int pthread_cond_destroy (pthread_cond_t *);
 int pthread_cond_init (pthread_cond_t *, const pthread_condattr_t *);
 int pthread_cond_signal (pthread_cond_t *);
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
 int pthread_cond_clockwait (pthread_cond_t *, pthread_mutex_t *,
                            clockid_t, const struct timespec *);
 #endif
@@ -187,7 +187,7 @@ int pthread_mutex_getprioceiling (const pthread_mutex_t *, 
int *);
 int pthread_mutex_init (pthread_mutex_t *, const pthread_mutexattr_t *);
 int pthread_mutex_lock (pthread_mutex_t *);
 int pthread_mutex_setprioceiling (pthread_mutex_t *, int, int *);
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
 int pthread_mutex_clocklock (pthread_mutex_t *, clockid_t,
                             const struct timespec *);
 #endif
@@ -219,14 +219,14 @@ int pthread_spin_unlock (pthread_spinlock_t *);
 int pthread_rwlock_destroy (pthread_rwlock_t *);
 int pthread_rwlock_init (pthread_rwlock_t *, const pthread_rwlockattr_t *);
 int pthread_rwlock_rdlock (pthread_rwlock_t *);
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
 int pthread_rwlock_clockrdlock (pthread_rwlock_t *, clockid_t,
                                const struct timespec *);
 #endif
 int pthread_rwlock_timedrdlock (pthread_rwlock_t *, const struct timespec *);
 int pthread_rwlock_tryrdlock (pthread_rwlock_t *);
 int pthread_rwlock_wrlock (pthread_rwlock_t *);
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
 int pthread_rwlock_clockwrlock (pthread_rwlock_t *, clockid_t,
                                const struct timespec *);
 #endif
diff --git a/winsup/cygwin/include/semaphore.h 
b/winsup/cygwin/include/semaphore.h
index e20bdc581632..6ff462d66bbe 100644
--- a/winsup/cygwin/include/semaphore.h
+++ b/winsup/cygwin/include/semaphore.h
@@ -32,7 +32,7 @@ extern "C"
   int sem_unlink (const char *__name);
   int sem_wait (sem_t *__sem);
   int sem_trywait (sem_t *__sem);
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
   int sem_clockwait (sem_t *__sem, clockid_t __clock_id, const struct timespec 
*__abstime);
 #endif
   int sem_timedwait (sem_t *__sem, const struct timespec *__abstime);
diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h
index 65822edb3754..5d58b36b0469 100644
--- a/winsup/cygwin/include/sys/poll.h
+++ b/winsup/cygwin/include/sys/poll.h
@@ -39,7 +39,7 @@ struct pollfd {
 typedef unsigned int nfds_t;
 
 extern int poll __P ((struct pollfd *fds, nfds_t nfds, int timeout));
-#if __GNU_VISIBLE
+#if __GNU_VISIBLE || __POSIX_VISIBLE >= 202405
 extern int ppoll __P ((struct pollfd *fds, nfds_t nfds,
                       const struct timespec *timeout_ts,
                       const sigset_t *sigmask));

Reply via email to