summaryrefslogtreecommitdiff
path: root/debian/patches/libpthread_cancel_init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/libpthread_cancel_init.patch')
-rw-r--r--debian/patches/libpthread_cancel_init.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/libpthread_cancel_init.patch b/debian/patches/libpthread_cancel_init.patch
new file mode 100644
index 00000000..36351c15
--- /dev/null
+++ b/debian/patches/libpthread_cancel_init.patch
@@ -0,0 +1,29 @@
+commit d69e38ee77536912308212945cfb0b6abe93cef0
+Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Date: Tue Oct 13 20:15:08 2009 +0200
+
+ Fix pthread_cleanup_push old-gcc-style initializer
+
+ sysdeps/generic/bits/cancelation.h (__pthread_cleanup_push): For better
+ portability to various compilation flags, use standard initializer for
+ struct __pthread_cancelation_handler __handler instead of old-gcc-style.
+
+---
+ libpthread/sysdeps/generic/bits/cancelation.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/libpthread/sysdeps/generic/bits/cancelation.h
++++ b/libpthread/sysdeps/generic/bits/cancelation.h
+@@ -38,9 +38,9 @@ struct __pthread_cancelation_handler **_
+ = __pthread_get_cleanup_stack (); \
+ struct __pthread_cancelation_handler __handler = \
+ { \
+- handler: (rt), \
+- arg: (rtarg), \
+- next: *__handlers \
++ (rt), \
++ (rtarg), \
++ *__handlers \
+ }; \
+ *__handlers = &__handler;
+