coap_mutex_internal.h: Support LwIP ! NO_SYS mutexes

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-07-20 15:02:25 +01:00
1 parent 90c1a98044
commit 4f164dcb2f
1 file changed
+2
+2
View File
@@ -60,6 +60,8 @@ typedef int coap_mutex_t;
#else /* !NO SYS */
#include <lwip/sys.h>
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__))