Skip to content

Commit 01f4c20

Browse files
soburihenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent 7e7672c commit 01f4c20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/wifi/eswifi/eswifi_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#define DT_DRV_COMPAT inventek_eswifi
1111
#endif
1212

13+
#define _POSIX_C_SOURCE 200809L
14+
1315
#include "eswifi_log.h"
1416
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
1517

0 commit comments

Comments
 (0)