Skip to content

Commit

Permalink
Add _POSIX_C_SOURCE flag to CMakeLists.txt which is needed for migrat…
Browse files Browse the repository at this point in the history
…ion to Zephyr 3.6.0
  • Loading branch information
MaartenS11 committed Nov 25, 2024
1 parent d038faf commit db369cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platforms/Zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(warduino)

# Note on _POSIX_C_SOURCE: If you define this macro to a value greater than or equal to 200809L, then the functionality from the 2008 edition of the POSIX standard (IEEE Standard 1003.1-2008) is made available.
target_compile_definitions(app PRIVATE _POSIX_C_SOURCE=200809L)

add_custom_command(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/upload.h
COMMAND xxd -i upload.wasm > upload.h
Expand Down

0 comments on commit db369cb

Please sign in to comment.