When CONFIG_PTHREAD_MUTEX_ROBUST is enabled ,
we get build error as "'pthread_mutexattr_t' has no member named 'robust'"
The error is due to missing wrap of CONFIG_PTHREAD_MUTEX_ROBUST
to "uint8_t robust : 1", where this member of pthread_mutexattr_t
should be included when CONFIG_PTHREAD_MUTEX_ROBUST is enabled.
Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
#ifdef CONFIG_PTHREAD_MUTEX_TYPES
uint8_t type : 2; /* Type of the mutex. See PTHREAD_MUTEX_* definitions */
#endif
-#ifdef CONFIG_PTHREAD_MUTEX_BOTH
+#if defined(CONFIG_PTHREAD_MUTEX_BOTH) || defined(CONFIG_PTHREAD_MUTEX_ROBUST)
uint8_t robust : 1; /* PTHREAD_MUTEX_STALLED or PTHREAD_MUTEX_ROBUST */
#endif
};