diff --git a/include/coap3/coap_mutex_internal.h b/include/coap3/coap_mutex_internal.h index 54caa03658..5dad5a2de4 100644 --- a/include/coap3/coap_mutex_internal.h +++ b/include/coap3/coap_mutex_internal.h @@ -60,6 +60,8 @@ typedef int coap_mutex_t; #else /* !NO SYS */ #include typedef sys_mutex_t *coap_mutex_t; +#define COAP_MUTEX_DEFINE(_name) \ + static coap_mutex_t _name #define TOKENPASTE(x, y) x ## y #define TOKENPASTE2(x, y) TOKENPASTE(x, y) #define COAP_MUTEX_INITIALIZER (&TOKENPASTE2(coapMutexAt, __LINE__))