Revert "pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++."
This reverts commit 444a9fbcd6
.
This commit is contained in:
parent
ce42a9affc
commit
2a65a34bee
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include <nuttx/compiler.h>
|
||||
#include <nuttx/irq.h>
|
||||
#include <nuttx/arch.h>
|
||||
|
||||
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
|
||||
# include <nuttx/atomic.h>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
|
||||
*/
|
||||
|
||||
# include <nuttx/spinlock.h>
|
||||
# include <arch/spinlock.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue