diff options
Diffstat (limited to 'cpukit/posix/src/pthreaddetach.c')
-rw-r--r-- | cpukit/posix/src/pthreaddetach.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreaddetach.c b/cpukit/posix/src/pthreaddetach.c index 7d7629f18a..153f04dba0 100644 --- a/cpukit/posix/src/pthreaddetach.c +++ b/cpukit/posix/src/pthreaddetach.c @@ -1,7 +1,7 @@ /* * 16.1.4 Detaching a Thread, P1003.1c/Draft 10, p. 149 * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -32,8 +32,10 @@ int pthread_detach( the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { - case OBJECTS_ERROR: +#if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: +#endif + case OBJECTS_ERROR: return ESRCH; case OBJECTS_LOCAL: |