Skip to content
Commit 97a2f307 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Henrik Brix Andersen
Browse files

thrift: Define module-wide _POSIX_C_SOURCE feature test macro



The Thrift library makes use of POSIX C functions such as ctime_r(), which
are not part of the ISO C standard.

This commit adds a Thrift module-wide `_POSIX_C_SOURCE` feature test macro
definition in order to ensure that the required POSIX C functions are
available when compiling the Thrift library.

Note that this was not caught earlier because Newlib and older versions of
Picolibc did not properly fence off some POSIX functions behind the feature
test macros.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent 871b5585
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment