diff options
author | Andrew Manison <amanison@anselsystems.com> | 2010-04-13 19:21:04 +0000 |
---|---|---|
committer | Andrew Manison <amanison@anselsystems.com> | 2010-04-13 19:21:04 +0000 |
commit | 0a605049043637a44f94e92cc6248ba8807306dd (patch) | |
tree | cfedcd39f7dfa617aa8c7d50ef56f28d545fbf81 /main/uclibc/uclibc-linuxthreads-init-stdio.patch | |
parent | 97a19460d006618b87187827f8d8a4aa6ecf0468 (diff) | |
parent | 4fb971ce31073d9b670ab9243295290aecc38501 (diff) | |
download | aports-0a605049043637a44f94e92cc6248ba8807306dd.tar.bz2 aports-0a605049043637a44f94e92cc6248ba8807306dd.tar.xz |
Merge remote branch 'alpine/master'
Diffstat (limited to 'main/uclibc/uclibc-linuxthreads-init-stdio.patch')
-rw-r--r-- | main/uclibc/uclibc-linuxthreads-init-stdio.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/uclibc/uclibc-linuxthreads-init-stdio.patch b/main/uclibc/uclibc-linuxthreads-init-stdio.patch new file mode 100644 index 000000000..aa5ef6460 --- /dev/null +++ b/main/uclibc/uclibc-linuxthreads-init-stdio.patch @@ -0,0 +1,21 @@ +diff --git a/libpthread/linuxthreads/pthread.c b/libpthread/linuxthreads/pthread.c +index 6ae9a10..151e039 100644 +--- a/libpthread/linuxthreads/pthread.c ++++ b/libpthread/linuxthreads/pthread.c +@@ -409,6 +409,16 @@ cannot allocate TLS data structures for initial thread\n"; + #endif + + __libc_multiple_threads_ptr = __libc_pthread_init (ptr_pthread_functions); ++ /* uClibc-specific stdio initialization for threads. */ ++ { ++ FILE *fp; ++ _stdio_user_locking = 0; /* 2 if threading not initialized */ ++ for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen) { ++ if (fp->__user_locking != 1) { ++ fp->__user_locking = 0; ++ } ++ } ++ } + } + + |