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:
Kamil Gawor 2024-04-15 11:47:43 +02:00 committed by Fabio Baltieri
commit 6c130bcbab

View file

@ -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>