From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6C53C1F4B4 for ; Mon, 5 Apr 2021 12:53:31 +0000 (UTC) Received: from localhost ([::1]:48474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTOjS-0001qy-7l for normalperson@yhbt.net; Mon, 05 Apr 2021 08:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTOjP-0001qq-Hp for bug-gnulib@gnu.org; Mon, 05 Apr 2021 08:53:27 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:24802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTOjN-0002BC-Cm for bug-gnulib@gnu.org; Mon, 05 Apr 2021 08:53:27 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1617627201; cv=none; d=strato.com; s=strato-dkim-0002; b=OSuevJNrBXWL1F65/7As9/hglHox45y4PsX7QCpT8gLfCg3bTC2NGmajprlGKa4T0Y /Go0Xo0si49jzsIogDVEvSfkuw3dB/+AQ5YKvqHXB9fFQwWPoDot4DFqFDFy9mv/8ZyS xbP6tPPBdZZufY/qkEIxBg70LoScjIC1jkxNUZbPbskzytL8I/Rsbb7AQZUVXenREPnX 7Rbl5/kfprLPf0rtT6OEeNgKYl9ofD4mbXPakyE3XFD4bPMTcWFDM12VuvEN5Tgo6Awd uNIuc05IcrsLtRe8e72TKG4nYTMrptWU6tN+SRtSH85BSAnWOzOGDGMvaXe4SA9fHf2r FlEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1617627201; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=8xjEoCy17GrQxev9A+8JJHxfZmVOcfKDaMdS/Oz0nsI=; b=XhnWG6F/EwZAKKNxpnoahq9rQPs7V8cZoP4moXhhBsMpcbjC3HcYy7T4A3kJ5IuwhC W87l9cycssEZ0DSw3x8Yp843oNbrg6J5XGHsrQHwAbnLcLdFxqUOeVtJDsi5MvC5TEc5 bljREgj3T1lcJECvbG9RW2bnfQ1dLF1y8RNZWPPDMOEqNGHY9/ftyiopOlds6TcJ5H67 xPUZYeokASKLi2yexlLnPQFvrBdzYMush1LldzSeKo0IDbvIOqM3aW/9YB2EPIomhsKs F4WJ1gBENLuwAxpqI2evcvwFUZxJLVY391c3nlC5cFGbikY4kWYBirUkqoB6EPEHz5Vo J50Q== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1617627201; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=8xjEoCy17GrQxev9A+8JJHxfZmVOcfKDaMdS/Oz0nsI=; b=fuixo0umPKNCjLiukB9JUs+LF51bYtv5ExcReWD1lAE9GQ3A+DU20nu3DBzsa/4B0X 0kMTkFky9YFitQs5dGK7im0mo3Js4hKbRe84ifF/68RRWrLDXW5PFR6kbV+BdYgToEwt 0KQ9uygmRgzlKNZf/pKL1Sfzcyh+FZjhBrtkyiB/BC5keZdF4xVdxsdLKn8Ny4XwUaju eDleW0P3Rv5xyFiv9MbpTuHa6W4cGZmI9IOKYNuUZOWJzrEbeHxzXBxGlp9WJul1zDTH 82riJEtftUSM1gj6v9vpFVGK+oZL1E0y7qjeiEjAVwaGmfS+ayH0Xat606LIrcsrXRX2 RjBg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf0y5JW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.23.1 DYNA|AUTH) with ESMTPSA id z01445x35CrLeZy (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 5 Apr 2021 14:53:21 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: [PATCH] lib/pthread-cond.c: use tv.nsec instead of tv.usec Date: Mon, 05 Apr 2021 12:46:44 +0200 Message-ID: <10507677.tSNLp1E0dV@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20210405090458.3529164-1-fontaine.fabrice@gmail.com> References: <20210405090458.3529164-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.161; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Fabrice Fontaine wrote: > Use tv.nsec instead of tv.usec to avoid the following build failure: > > lib/pthread-cond.c: In function 'pthread_cond_wait': > lib/pthread-cond.c:121:16: error: 'struct timespec' has no member named 'tv_usec'; did you mean 'tv_sec'? > 121 | duration.tv_usec = 0; > | ^~~~~~~ > | tv_sec > > Signed-off-by: Fabrice Fontaine > --- > lib/pthread-cond.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/pthread-cond.c b/lib/pthread-cond.c > index baa7c60bb..c2c00be03 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); > } > } > Oops. Thank you for the report and fix. Applied with this ChangeLog entry: 2021-04-05 Fabrice Fontaine pthread-cond: Fix compilation error. * lib/pthread-cond.c (pthread_cond_wait): Use tv.nsec instead of tv.usec.