diff options
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r-- | cpukit/posix/src/pthread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 408bb07dc4..4d8f95f150 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -200,7 +200,11 @@ static bool _POSIX_Threads_Create_extension( api->cancelation_requested = 0; api->cancelability_state = PTHREAD_CANCEL_ENABLE; api->cancelability_type = PTHREAD_CANCEL_DEFERRED; +#ifndef HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT _Chain_Initialize_empty (&api->Cancellation_Handlers); +#else /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ + api->last_cleanup_context = NULL; +#endif /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ /* * If the thread is not a posix thread, then all posix signals are blocked |