posix: threads: do not blanket-define _POSIX_THREADS via cmake #75208
Labels
area: POSIX
POSIX API Library
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
Prior to #51211, POSIX features were mostly all available all the time when
CONFIG_POSIX_API
was selected.As part of the above ticket, POSIX features via Kconfig options that were crafted to resemble standard Options and Option Groups.
With that, we no longer need to blanket-define
-D_POSIX_THREADS
, which was originally required with external C libraries such as Newlib and Picolibc.In fact, if
_POSIX_THREADS
is enabled, andCONFIG_POSIX_THREADS
is not selected, it is a bug.Please also mention any information which could help others to understand
the problem you're facing:
To Reproduce
prj.conf
CONFIG_EVENTFD=y
Expected behavior
POSIX features should match the configuration
Impact
It introduces an element of instability / unexpected behaviour.
Logs and console output
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: