Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf noup] config: nrfconnect: Define _DEFAULT_SOURCE #158

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

stephanosio
Copy link
Contributor

@stephanosio stephanosio commented Dec 2, 2022

This commit updates the chip-module build configurations to define _DEFAULT_SOURCE when compiling Matter because it uses non-standard functions that are only available when _DEFAULT_SOURCE is defined.

Note that this used to be not necessary only because of a quirk in the way Newlib handles the feature test macro, which resulted in Newlib defining _DEFAULT_SOURCE when compiling with -std=gnu.

For more details, refer to the issue zephyrproject-rtos/zephyr#52739.

Signed-off-by: Stephanos Ioannidis [email protected]

This commit updates the chip-module build configurations to define
`_DEFAULT_SOURCE` when compiling Matter because it uses non-standard
functions that are only available when `_DEFAULT_SOURCE` is defined.

Note that this used to be not necessary only because of a quirk in the
way Newlib handles the feature test macro, which resulted in Newlib
defining `_DEFAULT_SOURCE` when compiling with `-std=gnu`.

For more details, refer to the issue zephyrproject-rtos/zephyr#52739.

Signed-off-by: Stephanos Ioannidis <[email protected]>
@stephanosio stephanosio marked this pull request as ready for review December 2, 2022 16:19
@stephanosio
Copy link
Contributor Author

The CI failures seem to be unrelated to the changes in this PR.

sdk-nrf side CI passed:
https://jenkins-ncs.nordicsemi.no/job/latest/job/sdk-nrf/job/PR-9577/3/

Ready to be merged.

@stephanosio stephanosio removed the DNM label Dec 2, 2022
@nordicjm nordicjm merged commit f4a75a5 into nrfconnect:master Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants