Skip to content

Commit ab951a9

Browse files
committed
Revert "pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++."
This reverts commit 444a9fb. Signed-off-by: chao an <anchao@lixiang.com>
1 parent 1ff49f0 commit ab951a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nuttx/spinlock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#include <nuttx/compiler.h>
3737
#include <nuttx/irq.h>
38+
#include <nuttx/arch.h>
3839

3940
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
4041
# include <nuttx/atomic.h>

0 commit comments

Comments
 (0)