Skip to content

Commit 00482c4

Browse files
authored
Add _POSIX_C_SOURCE flag to CMakeLists.txt which is needed for migration to Zephyr 3.6.0 (#275)
1 parent 25409cc commit 00482c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platforms/Zephyr/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.20.0)
22
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
33
project(warduino)
44

5+
# 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.
6+
target_compile_definitions(app PRIVATE _POSIX_C_SOURCE=200809L)
7+
58
add_custom_command(
69
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/upload.h
710
COMMAND xxd -i upload.wasm > upload.h

0 commit comments

Comments
 (0)