summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadget.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-09 16:19:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-09 16:19:37 +0000
commitb1e13f4034d7e7a1b84b764305e66eee5e3ded48 (patch)
treeceaa10310a69fef410302b247470df0b737389f6 /cpukit/score/src/threadget.c
parent2011-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-b1e13f4034d7e7a1b84b764305e66eee5e3ded48.tar.bz2
2011-03-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadget.c: Remove conditional since this path can be tested with and without POSIX enabled.
Diffstat (limited to 'cpukit/score/src/threadget.c')
-rw-r--r--cpukit/score/src/threadget.c17
1 files changed, 9 insertions, 8 deletions
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 ) {