ipc_service: backends: icbmsg: Fix strnlen warnings
This fixes warnings when building with icbmsg backend for IPC service by defining _POSIX_C_SOURCE 200809L in source file. Signed-off-by: Kamil Gawor <Kamil.Gawor@nordicsemi.no>
This commit is contained in:
parent
b621802614
commit
6c130bcbab
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@
|
|||
* data messages, it calls bound endpoint and it is ready to send data.
|
||||
*/
|
||||
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 200809L /* For strnlen() */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <zephyr/logging/log.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue