From a9808ade427619ec1912cbc0b510d0b4cda9ac9d Mon Sep 17 00:00:00 2001 From: Daniel Mangum Date: Sun, 3 Sep 2023 11:46:20 -0400 Subject: [PATCH] Define coap_mutex_t as sys_mutex on Zephyr Changes definition of coap_mutex_t as k_mutex to sys_mutex to build properly with Zephyr. Signed-off-by: Daniel Mangum --- include/coap3/coap_mutex_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/coap3/coap_mutex_internal.h b/include/coap3/coap_mutex_internal.h index f14d2fdc..c9358499 100644 --- a/include/coap3/coap_mutex_internal.h +++ b/include/coap3/coap_mutex_internal.h @@ -85,7 +85,7 @@ typedef int coap_mutex_t; #elif defined(__ZEPHYR__) #include -typedef struct k_mutex coap_mutex_t; +typedef struct sys_mutex coap_mutex_t; #define coap_mutex_init(a) sys_mutex_init(a) #define coap_mutex_destroy(a)