From 4f164dcb2f61a3e192f7bfdb302adb8b2b7691c0 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 20 Jul 2023 14:32:48 +0100 Subject: [PATCH] coap_mutex_internal.h: Support LwIP ! NO_SYS mutexes --- include/coap3/coap_mutex_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/coap3/coap_mutex_internal.h b/include/coap3/coap_mutex_internal.h index 54caa036..5dad5a2d 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__))