From b89cc9f6b9bc93aeb47b2d49c1e536b0d33fea9a Mon Sep 17 00:00:00 2001 From: Krishna T Date: Mon, 27 Mar 2023 19:00:33 +0530 Subject: [PATCH] Fix POSIX build As per [1], newlibc now defines _ANSI_SOURCE to avoid POSIX conflicts, but as hostapd needs POSIX stuff from libc, need to enable this explicitly. [1] - https://github.com/zephyrproject-rtos/zephyr/issues/52739 Signed-off-by: Krishna T --- zephyr/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 02b6fa84f..4f6b86e15 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -27,6 +27,9 @@ zephyr_include_directories( ) zephyr_library_compile_definitions( + # newlibc now defines _ANSI_SOURCE to avoid POSIX conflicts, so, need to + # enable POSIX features explicitly by below feature flag for this hostapd + _POSIX_C_SOURCE TLS_DEFAULT_CIPHERS=\""DEFAULT:!EXP:!LOW"\" CONFIG_SHA256 CONFIG_SME