coap_config_posix.h: Set up defines for correct mutex usage

if COAP_CONSTRAINED_STACK is defined (is for esp-idf), the mutexes set up
to protect the critical sections were not working as expected and were just
dummy entries.

Use the pthread_ version of the mutex instead by defining HAVE_PTHREAD_H
and HAVE_PTHREAD_MUTEX_LOCK.
This commit is contained in:
Jon Shallow 2022-05-17 13:51:36 +00:00
parent 289840dcb7
commit 448b0b5e7c
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: "4.3.0"
version: "4.3.0~1"
description: Constrained Application Protocol (CoAP) C Library
url: https://github.com/espressif/idf-extra-components/tree/master/coap
dependencies:

View File

@ -30,6 +30,8 @@
#define HAVE_NETDB_H
#define HAVE_NETINET_IN_H
#define HAVE_STRUCT_CMSGHDR
#define HAVE_PTHREAD_H
#define HAVE_PTHREAD_MUTEX_LOCK
#define COAP_DISABLE_TCP 0
#define ipi_spec_dst ipi_addr