Skip to content

Don't nanosleep on non-linux builds#472

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
danielinux:do-not-nanosleep
Mar 19, 2026
Merged

Don't nanosleep on non-linux builds#472
dgarske merged 1 commit intowolfSSL:masterfrom
danielinux:do-not-nanosleep

Conversation

@danielinux
Copy link
Copy Markdown
Member

A regression was introduced on ARM bare-metal builds by selecting the XSLEEP_MS() implementation that calls nanosleep() whenever _POSIX_C_SOURCE >= 199309L is defined.

On the arm-none-eabi 13.2 toolchain, newlib predefines _POSIX_C_SOURCE=200809L, but does not provide nanosleep() so compilation fails with -Werror=implicit-function-declaration in wolftpm/tpm2_types.h. This surfaced while compiling wolfboot with latest wolfTPM.

@dgarske dgarske merged commit d1756f9 into wolfSSL:master Mar 19, 2026
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants