This patch fixes compilation error when CONFIG_CANCELLATION_POINTS and
CONFIG_PTHREAD_MUTEX_UNSAFE are enabled.
Change-Id: I4b0cfda0ff054568b29aae1c1560c7442da37887
Signed-off-by: EunBong Song <eunb.song@samsung.com>
#define pthread_mutex_give(m) pthread_givesemaphore(&(m)->sem)
#endif
-#if defined(CONFIG_CANCELLATION_POINTS)
+#if defined(CONFIG_CANCELLATION_POINTS) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)
uint16_t pthread_disable_cancel(void);
void pthread_enable_cancel(uint16_t oldstate);
#else