From 8b32ec4d89de0549c76ef09230681b95cada6996 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 5 Apr 2021 12:44:41 +0200 Subject: [PATCH] pthread-cond: Fix compilation error. * lib/pthread-cond.c (pthread_cond_wait): Use tv.nsec instead of tv.usec. --- ChangeLog | 6 ++++++ lib/pthread-cond.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3c8e78ddff..e8a27df73b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-04-05 Fabrice Fontaine + + pthread-cond: Fix compilation error. + * lib/pthread-cond.c (pthread_cond_wait): Use tv.nsec instead of + tv.usec. + 2021-04-04 Fabrice Fontaine pthread-cond: Fix wrong configure results when is absent. diff --git a/lib/pthread-cond.c b/lib/pthread-cond.c index baa7c60bb4..c2c00be034 100644 --- a/lib/pthread-cond.c +++ b/lib/pthread-cond.c @@ -118,7 +118,7 @@ pthread_cond_wait (pthread_cond_t *cond _GL_UNUSED, struct timespec duration; duration.tv_sec = 86400; - duration.tv_usec = 0; + duration.tv_nsec = 0; nanosleep (&duration, NULL); } } -- 2.39.5