diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/keydelete.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/posix/src/keydelete.c b/cpukit/posix/src/keydelete.c index 364108046b..65b5d8e8df 100644 --- a/cpukit/posix/src/keydelete.c +++ b/cpukit/posix/src/keydelete.c @@ -31,8 +31,10 @@ int pthread_key_delete( the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { - case OBJECTS_ERROR: +#if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* should never happen */ +#endif + case OBJECTS_ERROR: return EINVAL; case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); |