diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index 8678dbef805f7..bd15818d6a7e7 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -35,6 +35,7 @@ #include #include +#include #if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK) # include diff --git a/include/pthread.h b/include/pthread.h index 97eca7a5368ed..0418dfacd0726 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 /****************************************************************************