diff options
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/mqueueunlink.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/semunlink.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c index 3a14983226..9f27cb6b61 100644 --- a/cpukit/posix/src/mqueueunlink.c +++ b/cpukit/posix/src/mqueueunlink.c @@ -58,10 +58,12 @@ int mq_unlink( * Don't support unlinking a remote message queue. */ +#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id(the_mq_id) ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOSYS ); } +#endif the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object( &_POSIX_Message_queue_Information, diff --git a/cpukit/posix/src/semunlink.c b/cpukit/posix/src/semunlink.c index b694ea19f9..53475f1527 100644 --- a/cpukit/posix/src/semunlink.c +++ b/cpukit/posix/src/semunlink.c @@ -50,10 +50,12 @@ int sem_unlink( * Don't support unlinking a remote semaphore. */ +#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id((Objects_Id)the_semaphore_id) ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOSYS ); } +#endif the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object( &_POSIX_Semaphore_Information, |