From b1e13f4034d7e7a1b84b764305e66eee5e3ded48 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 Mar 2011 16:19:37 +0000 Subject: 2011-03-09 Joel Sherrill * score/src/threadget.c: Remove conditional since this path can be tested with and without POSIX enabled. --- cpukit/score/src/threadget.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'cpukit/score/src/threadget.c') diff --git a/cpukit/score/src/threadget.c b/cpukit/score/src/threadget.c index 9e98dfd75f..30574a3617 100644 --- a/cpukit/score/src/threadget.c +++ b/cpukit/score/src/threadget.c @@ -1,7 +1,7 @@ /* * Thread Handler - Object Id to Thread Pointer * - * COPYRIGHT (c) 1989-2010. + * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -76,14 +76,15 @@ Thread_Control *_Thread_Get ( api_information = _Objects_Information_table[ the_api ]; /* - * There is no way for this to happen if POSIX is enabled. + * There is no way for this to happen if POSIX is enabled. But there + * is actually a test case in sp43 for this which trips it whether or + * not POSIX is enabled. So in the interest of safety, this is left + * on in all configurations. */ - #if !defined(RTEMS_POSIX_API) - if ( !api_information ) { - *location = OBJECTS_ERROR; - goto done; - } - #endif + if ( !api_information ) { + *location = OBJECTS_ERROR; + goto done; + } information = api_information[ the_class ]; if ( !information ) { -- cgit v1.2.3