Skip to content
Commit d52b4382 authored by Binu Jacob's avatar Binu Jacob Committed by Christopher Friedt
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 7cdc791b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment