From 209e68dfbd14d215f5bc78a4211ec61b079defa0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 2004 17:21:16 +0000 Subject: 2004-11-02 Joel Sherrill * posix/src/mqueueunlink.c, posix/src/semunlink.c, score/inline/rtems/score/object.inl, score/macros/rtems/score/object.inl: _Objects_Is_local_id() should be avoided in single CPU configurations but always available in the Objects Handlers API. --- cpukit/posix/src/semunlink.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/posix/src/semunlink.c') 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, -- cgit v1.2.3