forked from nuttx/nuttx-update
pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++.
Instead, we should use nuttx/spinlock.h. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
bc97e73aee
commit
444a9fbcd6
2 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,6 @@
|
|||
|
||||
#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 <arch/spinlock.h>
|
||||
# include <nuttx/spinlock.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue