Hi Nadav,
do you have some test code showing the issue?
best regards
Waldemar
Nadav Tasher wrote,
Without this change `timespec` is too large for the
`clock_nanosleep` syscall,
which translates to sleep(0) on 32bit systems when TIME64 is enabled (the default).
Tested on MIPS.
Signed-off-by: Nadav Tasher <tashernadav(a)gmail.com>
---
include/time.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/time.h b/include/time.h
index 1a1408990..25dfb9e2e 100644
--- a/include/time.h
+++ b/include/time.h
@@ -118,7 +118,7 @@ typedef __timer_t timer_t;
has nanoseconds instead of microseconds. */
struct timespec
{
- __time_t tv_sec; /* Seconds. */
+ int tv_sec; /* Seconds. */
long int tv_nsec; /* Nanoseconds. */
};
--
2.34.1
_______________________________________________
devel mailing list -- devel(a)uclibc-ng.org
To unsubscribe send an email to devel-leave(a)uclibc-ng.org