From: gfleury <gfle...@disroot.org>

Signed-off-by: gfleury <gfle...@disroot.org>
Message-ID: <20250216145434.7089-2-gfle...@disroot.org>
---
 htl/Makefile                 | 2 +-
 htl/Versions                 | 1 +
 htl/pt-internal.h            | 1 +
 sysdeps/htl/pt-rwlock-attr.c | 1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/htl/Makefile b/htl/Makefile
index 2b2a49c7b7..13215943d7 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -45,7 +45,6 @@ libpthread-routines := \
   pt-testcancel \
   pt-cancel \
   pt-mutex-transfer-np \
-  pt-rwlock-attr \
   pt-rwlockattr-init \
   pt-rwlockattr-destroy \
   pt-rwlockattr-getpshared \
@@ -201,6 +200,7 @@ routines := \
   pt-mutexattr-settype \
   pt-nthreads \
   pt-pthread_self \
+  pt-rwlock-attr \
   pt-self pt-equal \
   pt-setcancelstate \
   pt-setcanceltype \
diff --git a/htl/Versions b/htl/Versions
index dd3be82e9e..ff24da0190 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -171,6 +171,7 @@ libc {
     __pthread_cond_wait;
     __pthread_condattr_init;
     __pthread_default_condattr;
+    __pthread_default_rwlockattr;
     __pthread_mutex_checklocked;
     __pthread_mutex_destroy;
     __pthread_mutex_init;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index d19579b33b..cd4ebc0a6a 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -331,6 +331,7 @@ extern const struct __pthread_barrierattr 
__pthread_default_barrierattr;
 
 /* Default rdlock attributes.  */
 extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
+libc_hidden_proto (__pthread_default_rwlockattr)
 
 /* Default condition attributes.  */
 extern const struct __pthread_condattr __pthread_default_condattr;
diff --git a/sysdeps/htl/pt-rwlock-attr.c b/sysdeps/htl/pt-rwlock-attr.c
index 999e108ecf..98dd4c9d69 100644
--- a/sysdeps/htl/pt-rwlock-attr.c
+++ b/sysdeps/htl/pt-rwlock-attr.c
@@ -22,3 +22,4 @@
 const struct __pthread_rwlockattr __pthread_default_rwlockattr = {
   __pshared: PTHREAD_PROCESS_PRIVATE
 };
+libc_hidden_data_def (__pthread_default_rwlockattr)
-- 
2.47.2


Reply via email to