summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-24 15:58:26 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-24 16:00:14 +0100
commitf6a1ef9fdb9df6beea4251f4440f6db5c6a473b9 (patch)
tree7359a0b2c5a3e8e16da7facaaf46041fc4ef1462 /cpukit/posix/src/pthread.c
parentbsp/altera-cyclone-v: Add fatal extension handler (diff)
downloadrtems-f6a1ef9fdb9df6beea4251f4440f6db5c6a473b9.tar.bz2
posix: Require struct _pthread_cleanup_context
This structure is available in Newlib since 2013-11-29 (Git commit a534dfd26e765047621acd0eda656ded886e7108).
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r--cpukit/posix/src/pthread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 0fbe43338a..da0cf48a0c 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -209,11 +209,7 @@ 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