diff --git a/arch/xtensa/src/common/espressif/platform_include/sys/lock.h b/arch/xtensa/src/common/espressif/platform_include/sys/lock.h index 94e4809034..55ca152590 100644 --- a/arch/xtensa/src/common/espressif/platform_include/sys/lock.h +++ b/arch/xtensa/src/common/espressif/platform_include/sys/lock.h @@ -39,7 +39,15 @@ struct __lock { +#ifdef CONFIG_PRIORITY_INHERITANCE +# if CONFIG_SEM_PREALLOCHOLDERS > 0 + int reserved[5]; +# else + int reserved[8]; +# endif +#else int reserved[4]; +#endif }; typedef _LOCK_T _lock_t;