[PATCH] glibc-2.0.7 fix for pthread_initialize
David S. Miller
davem@dm.cobaltmicro.com
Mon Oct 19 12:24:00 GMT 1998
Somebody just plain removed the underbars in the name and made it
static without considering who referenced it. Here is a fix.
The bogus change happened somewhere between glibc-2.0.5 and now, back
then it was just like this patch makes it.
--- linuxthreads/pthread.c.~1~ Sun Dec 7 20:25:24 1997
+++ linuxthreads/pthread.c Mon Oct 19 07:35:21 1998
@@ -132,9 +132,9 @@
mask with e.g. sigsetjmp before creating the first thread);
- a regular function called from pthread_create when needed. */
-static void pthread_initialize(void) __attribute__((constructor));
+void __pthread_initialize(void) __attribute__((constructor));
-static void pthread_initialize(void)
+void __pthread_initialize(void)
{
struct sigaction sa;
sigset_t mask;
@@ -181,7 +181,7 @@
/* If basic initialization not done yet (e.g. we're called from a
constructor run before our constructor), do it now */
- if (__pthread_initial_thread_bos == NULL) pthread_initialize();
+ if (__pthread_initial_thread_bos == NULL) __pthread_initialize();
/* Setup stack for thread manager */
__pthread_manager_thread_bos = malloc(THREAD_MANAGER_STACK_SIZE);
if (__pthread_manager_thread_bos == NULL) return -1;
More information about the Libc-hacker
mailing list