Skip to content

Commit

Permalink
pthread: We should not directly include arch/spinlock.h as it may cau…
Browse files Browse the repository at this point in the history
…se compilation errors in C++.

Instead, we should use nuttx/spinlock.h.

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Oct 12, 2024
1 parent 4c1c051 commit 4f09ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
*/

# include <arch/spinlock.h>
# include <nuttx/spinlock.h>
#endif

/****************************************************************************
Expand Down

0 comments on commit 4f09ce9

Please sign in to comment.