diff --git a/drivers/timers/rpmsg_rtc.c b/drivers/timers/rpmsg_rtc.c index 68a5c731c5..b3b12188b6 100644 --- a/drivers/timers/rpmsg_rtc.c +++ b/drivers/timers/rpmsg_rtc.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include diff --git a/include/nuttx/spinlock_type.h b/include/nuttx/spinlock_type.h index db3b64f00e..e50c9254c7 100644 --- a/include/nuttx/spinlock_type.h +++ b/include/nuttx/spinlock_type.h @@ -29,6 +29,10 @@ #include +#if defined(CONFIG_RW_SPINLOCK) || defined(CONFIG_TICKET_SPINLOCK) +#include +#endif + #undef EXTERN #if defined(__cplusplus) #define EXTERN extern "C"