diff --git a/include/pthread.h b/include/pthread.h index 2f91463f11..d2e8a67669 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -416,7 +416,6 @@ typedef int pthread_rwlockattr_t; 0, 0, false} #ifdef CONFIG_PTHREAD_SPINLOCKS -#ifndef __PTHREAD_SPINLOCK_T_DEFINED /* This (non-standard) structure represents a pthread spinlock */ struct pthread_spinlock_s @@ -426,7 +425,7 @@ struct pthread_spinlock_s * SP_UNLOCKED. */ pthread_t sp_holder; /* ID of the thread that holds the spinlock */ }; - +#ifndef __PTHREAD_SPINLOCK_T_DEFINED /* It is referenced via this standard type */ typedef FAR struct pthread_spinlock_s pthread_spinlock_t;