diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 01:34:36 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-01 01:34:36 +0000 |
commit | 2945fdf2acd8bb9df3246685153442400c104f9c (patch) | |
tree | 00b9d316971b1b8e84fe4eedc81770ae5db9e16d /libpthread | |
parent | ea5e5a10e8c2eba34dccb89ab625ee2f4a97e753 (diff) |
__pthread_exit is noreturn only within libpthread
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads/internals.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h index 79334ef52..28d86459d 100644 --- a/libpthread/linuxthreads/internals.h +++ b/libpthread/linuxthreads/internals.h @@ -366,7 +366,11 @@ extern pthread_t __pthread_self (void); extern pthread_descr __pthread_thread_self (void); extern pthread_descr __pthread_self_stack (void) attribute_hidden; extern int __pthread_equal (pthread_t thread1, pthread_t thread2); -extern void __pthread_exit (void *retval) attribute_noreturn; +extern void __pthread_exit (void *retval) +#if defined NOT_IN_libc && defined IS_IN_libpthread + attribute_noreturn +#endif + ; extern int __pthread_getschedparam (pthread_t thread, int *policy, struct sched_param *param); extern int __pthread_setschedparam (pthread_t thread, int policy, |