summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-13 20:15:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-13 20:15:08 +0200
commit97998cd4d4a3be935bfa373c50c2624bbabd7d02 (patch)
tree707c711c7619d28d56ca85b46d95961ed30a26e5 /sysdeps
parent25cbe85eafc3d4155a59f4690a3b581ead14d938 (diff)
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/bits/cancelation.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/bits/cancelation.h b/sysdeps/generic/bits/cancelation.h
index f446d595..db9169a9 100644
--- a/sysdeps/generic/bits/cancelation.h
+++ b/sysdeps/generic/bits/cancelation.h
@@ -38,9 +38,9 @@ struct __pthread_cancelation_handler **__pthread_get_cleanup_stack (void);
= __pthread_get_cleanup_stack (); \
struct __pthread_cancelation_handler __handler = \
{ \
- handler: (rt), \
- arg: (rtarg), \
- next: *__handlers \
+ (rt), \
+ (rtarg), \
+ *__handlers \
}; \
*__handlers = &__handler;