Skip to content

Commit

Permalink
net: lib: lwm2m_client_utils: Fix strnlen() warnings
Browse files Browse the repository at this point in the history
Fix warning about missing strnlen() declaration on native_posix
platform.

Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
rlubos committed Mar 21, 2024
1 parent 569493e commit 72ffd90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/net/lib/lwm2m_client_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ zephyr_library_sources_ifdef(CONFIG_LWM2M_CLIENT_UTILS_WIFI_AP_SCANNER location/
zephyr_library_sources_ifdef(CONFIG_LWM2M_CLIENT_UTILS_VISIBLE_WIFI_AP_OBJ_SUPPORT lwm2m/visible_wifi_ap.c)
zephyr_library_sources_ifdef(CONFIG_LWM2M_CLIENT_UTILS_LTE_CONNEVAL lwm2m/lwm2m_conneval.c)
zephyr_include_directories(lwm2m/include)

# For strnlen()
zephyr_library_compile_definitions(_POSIX_C_SOURCE=200809L)

0 comments on commit 72ffd90

Please sign in to comment.