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 <georgedanielmangum@gmail.com>
This commit is contained in:
Daniel Mangum authored and Jon Shallow committed 2023-09-04 10:35:57 +01:00
1 parent 2ca498822c
commit a9808ade42
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ typedef int coap_mutex_t;
#elif defined(__ZEPHYR__)
#include <zephyr/sys/mutex.h>
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)