diff options
Diffstat (limited to 'cpukit/posix/src/pspinunlock.c')
-rw-r--r-- | cpukit/posix/src/pspinunlock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/posix/src/pspinunlock.c b/cpukit/posix/src/pspinunlock.c index 35dbcb977f..b92473d7c1 100644 --- a/cpukit/posix/src/pspinunlock.c +++ b/cpukit/posix/src/pspinunlock.c @@ -21,14 +21,13 @@ #endif #include <rtems/posix/spinlockimpl.h> - -#include <errno.h> +#include <rtems/posix/posixapi.h> int pthread_spin_unlock( pthread_spinlock_t *spinlock ) { POSIX_Spinlock_Control *the_spinlock; ISR_lock_Context lock_context; - CORE_spinlock_Status status; + Status_Control status; the_spinlock = _POSIX_Spinlock_Get( spinlock, &lock_context ); if ( the_spinlock == NULL ) { @@ -36,5 +35,5 @@ int pthread_spin_unlock( pthread_spinlock_t *spinlock ) } status = _CORE_spinlock_Surrender( &the_spinlock->Spinlock, &lock_context ); - return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); + return _POSIX_Get_error( status ); } |