From 4f09ce9e0a4f3349e0f0d58a7b8d88eedd860f9d Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 29 Apr 2024 10:41:17 +0800 Subject: [PATCH] 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 --- include/pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pthread.h b/include/pthread.h index 0418dfacd0726..97eca7a5368ed 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -49,7 +49,7 @@ * SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t. */ -# include +# include #endif /****************************************************************************