aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2012-02-08 15:45:44 +0000
committerImre Kaloz <kaloz@openwrt.org>2012-02-08 15:45:44 +0000
commit9bf867b53132f595cae90cc201798bd1f77dfb64 (patch)
treeb291164d46227f77bcabe857e50f92a27f34e4b7 /toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch
parent75a929c65e7573f3c193f8f93937115cc707ccb6 (diff)
downloadupstream-9bf867b53132f595cae90cc201798bd1f77dfb64.tar.gz
upstream-9bf867b53132f595cae90cc201798bd1f77dfb64.tar.bz2
upstream-9bf867b53132f595cae90cc201798bd1f77dfb64.zip
add 0.9.33
SVN-Revision: 30374
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch')
-rw-r--r--toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch b/toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch
new file mode 100644
index 0000000000..ae36018792
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.33/180-pthread_cleanup_fix.patch
@@ -0,0 +1,45 @@
+--- a/libpthread/nptl/cleanup_defer_compat.c
++++ b/libpthread/nptl/cleanup_defer_compat.c
+@@ -22,7 +22,7 @@
+
+ void
+ attribute_protected
+-_pthread_cleanup_push_defer (
++__pthread_cleanup_push_defer (
+ struct _pthread_cleanup_buffer *buffer,
+ void (*routine) (void *),
+ void *arg)
+@@ -57,12 +57,12 @@ _pthread_cleanup_push_defer (
+
+ THREAD_SETMEM (self, cleanup, buffer);
+ }
+-strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
++strong_alias (__pthread_cleanup_push_defer, _pthread_cleanup_push_defer)
+
+
+ void
+ attribute_protected
+-_pthread_cleanup_pop_restore (
++__pthread_cleanup_pop_restore (
+ struct _pthread_cleanup_buffer *buffer,
+ int execute)
+ {
+@@ -97,4 +97,4 @@ _pthread_cleanup_pop_restore (
+ if (execute)
+ buffer->__routine (buffer->__arg);
+ }
+-strong_alias (_pthread_cleanup_pop_restore, __pthread_cleanup_pop_restore)
++strong_alias (__pthread_cleanup_pop_restore, _pthread_cleanup_pop_restore)
+--- a/libpthread/nptl/init.c
++++ b/libpthread/nptl/init.c
+@@ -112,8 +112,8 @@ static const struct pthread_functions pt
+ .ptr___pthread_key_create = __pthread_key_create_internal,
+ .ptr___pthread_getspecific = __pthread_getspecific_internal,
+ .ptr___pthread_setspecific = __pthread_setspecific_internal,
+- .ptr__pthread_cleanup_push_defer = _pthread_cleanup_push_defer,
+- .ptr__pthread_cleanup_pop_restore = _pthread_cleanup_pop_restore,
++ .ptr__pthread_cleanup_push_defer = __pthread_cleanup_push_defer,
++ .ptr__pthread_cleanup_pop_restore = __pthread_cleanup_pop_restore,
+ .ptr_nthreads = &__nptl_nthreads,
+ .ptr___pthread_unwind = &__pthread_unwind,
+ .ptr__nptl_deallocate_tsd = __nptl_deallocate_tsd,