drivers: wifi: eswifi: Specify POSIX-2008 to use `strnlen()`

`_POSIX_C_SOURCE` must be specified to use the `strnlen()` function
in string.h. Make sure to specify this explicitly.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2024-09-28 13:52:13 +09:00 committed by Henrik Brix Andersen
parent 7e7672cb4b
commit 01f4c20fdc
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@
#define DT_DRV_COMPAT inventek_eswifi
#endif
#define _POSIX_C_SOURCE 200809L
#include "eswifi_log.h"
LOG_MODULE_REGISTER(LOG_MODULE_NAME);