From 312e822571217b30e7ecd7843621c57d4af6f835 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 25 Jan 2006 20:35:27 +0000 Subject: Modify the earlier changes, because libc-lock references __pthread_mutex*, dont use hidden_strong_alias --- libpthread/linuxthreads.old/lockfile.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libpthread/linuxthreads.old/lockfile.c') diff --git a/libpthread/linuxthreads.old/lockfile.c b/libpthread/linuxthreads.old/lockfile.c index 48131bb4a..453a7e936 100644 --- a/libpthread/linuxthreads.old/lockfile.c +++ b/libpthread/linuxthreads.old/lockfile.c @@ -20,9 +20,9 @@ #include #include -libpthread_hidden_proto(pthread_mutexattr_init) -libpthread_hidden_proto(pthread_mutexattr_settype) -libpthread_hidden_proto(pthread_mutexattr_destroy) +extern __typeof(pthread_mutexattr_init) __pthread_mutexattr_init attribute_hidden; +extern __typeof(pthread_mutexattr_settype) __pthread_mutexattr_settype attribute_hidden; +extern __typeof(pthread_mutexattr_destroy) __pthread_mutexattr_destroy attribute_hidden; /* Note: glibc puts flockfile, funlockfile, and ftrylockfile in both * libc and libpthread. In uClibc, they are now in libc only. */ @@ -33,11 +33,11 @@ __fresetlockfiles (void) FILE *fp; pthread_mutexattr_t attr; - pthread_mutexattr_init(&attr); - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); + __pthread_mutexattr_init(&attr); + __pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen) __pthread_mutex_init(&fp->__lock, &attr); - pthread_mutexattr_destroy(&attr); + __pthread_mutexattr_destroy(&attr); } -- cgit v1.2.3