Skip to content
Commit 5fa5658e authored by Binu Jacob's avatar Binu Jacob Committed by Anas Nashif
Browse files

libc: newlibc: Fix recursive gettimeofday() calls on non-Posix systems



Calling gettimeofday() from _gettimeofday() in a non-Posix build
environment can result in a recursive call loop, causing a stack
overflow. Modify _gettimeofday() to return -1 for non-posix systems
(the previous behaviour that was added in #22508).

Fixes #41095

Signed-off-by: default avatarBinu Jacob <bjj@planetinnovation.com.au>
parent 205b7f24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment