From 27dfb08300ec076b78e35069c403678ca87d95fc Mon Sep 17 00:00:00 2001 From: MaartenS11 Date: Wed, 21 Aug 2024 11:28:47 +0200 Subject: [PATCH] Add _POSIX_C_SOURCE flag to CMakeLists.txt which is needed for migration to Zephyr 3.6.0 --- platforms/Zephyr/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platforms/Zephyr/CMakeLists.txt b/platforms/Zephyr/CMakeLists.txt index b17ff7fd..0ed056c0 100644 --- a/platforms/Zephyr/CMakeLists.txt +++ b/platforms/Zephyr/CMakeLists.txt @@ -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