Skip to content

Commit

Permalink
Fix POSIX build
Browse files Browse the repository at this point in the history
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] - zephyrproject-rtos/zephyr#52739

Signed-off-by: Krishna T <[email protected]>
  • Loading branch information
Krishna T committed Mar 27, 2023
1 parent 6d949b2 commit b89cc9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b89cc9f

Please sign in to comment.