[git commit prelink 1/1] sem_open.c/sem_unlink.c: Use INTUSE macro to get proper function call to __pthread_once

Khem Raj raj.khem at gmail.com
Sun Jan 2 07:00:47 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=9e5335ed874515b33aa296c1cd8e7a8b640472c9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink

We need to use __pthread_once_internal if available this macro is
therefore used to notify that.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 libpthread/nptl/sem_open.c   |    2 +-
 libpthread/nptl/sem_unlink.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c
index 28dd3aa..71bebb0 100644
--- a/libpthread/nptl/sem_open.c
+++ b/libpthread/nptl/sem_open.c
@@ -248,7 +248,7 @@ sem_open (const char *name, int oflag, ...)
   int fd;
 
   /* Determine where the shmfs is mounted.  */
-  __pthread_once (&__namedsem_once, __where_is_shmfs);
+  INTUSE(__pthread_once) (&__namedsem_once, __where_is_shmfs);
 
   /* If we don't know the mount points there is nothing we can do.  Ever.  */
   if (mountpoint.dir == NULL)
diff --git a/libpthread/nptl/sem_unlink.c b/libpthread/nptl/sem_unlink.c
index beed02e..f3e7f1a 100644
--- a/libpthread/nptl/sem_unlink.c
+++ b/libpthread/nptl/sem_unlink.c
@@ -33,7 +33,7 @@ sem_unlink (
   size_t namelen;
 
   /* Determine where the shmfs is mounted.  */
-  __pthread_once (&__namedsem_once, __where_is_shmfs);
+  INTUSE(__pthread_once) (&__namedsem_once, __where_is_shmfs);
 
   /* If we don't know the mount points there is nothing we can do.  Ever.  */
   if (mountpoint.dir == NULL)
-- 
1.7.2.2



More information about the uClibc-cvs mailing list