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=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,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 859051F8C8 for ; Sat, 2 Oct 2021 21:13:49 +0000 (UTC) Received: from localhost ([::1]:51722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWmKJ-0001p6-TL for normalperson@yhbt.net; Sat, 02 Oct 2021 17:13:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWmKF-0001oi-HV for bug-gnulib@gnu.org; Sat, 02 Oct 2021 17:13:43 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWmKD-0006ui-56 for bug-gnulib@gnu.org; Sat, 02 Oct 2021 17:13:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2B4B116011D for ; Sat, 2 Oct 2021 14:13:37 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9BRv6SJuJwDU; Sat, 2 Oct 2021 14:13:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CC2A81600C5; Sat, 2 Oct 2021 14:13:35 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id U4kyAKmGNLrc; Sat, 2 Oct 2021 14:13:35 -0700 (PDT) Received: from day.example.com (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A699C1600AD; Sat, 2 Oct 2021 14:13:35 -0700 (PDT) From: Paul Eggert To: bug-gnulib@gnu.org Subject: [PATCH] sys_select: port better to OpenBSD 6.9 Date: Sat, 2 Oct 2021 14:13:30 -0700 Message-Id: <20211002211330.196639-1-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-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: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" OpenBSD 6.9=E2=80=99s includes which then includes , which caused coreutils/lib/nproc.c compiles to fail with "/usr/include/signal.h:57: warning: 'struct sigaction' declared inside parameter list". Fix this. * lib/sys_select.in.h [__OpenBSD__]: Simply delegate to the system header if being included from . --- ChangeLog | 10 ++++++++++ lib/sys_select.in.h | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1c7390625..9bae3c4a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2021-10-02 Paul Eggert + + sys_select: port better to OpenBSD 6.9 + OpenBSD 6.9=E2=80=99s includes which then + includes , which caused coreutils/lib/nproc.c compiles + to fail with "/usr/include/signal.h:57: warning: 'struct + sigaction' declared inside parameter list". Fix this. + * lib/sys_select.in.h [__OpenBSD__]: Simply delegate to the system + header if being included from . + 2021-09-22 Bruno Haible =20 doc: Fix outdated statement about Spanish collation. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index f8ef648d4..910bea5d1 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -21,7 +21,7 @@ =20 /* On OSF/1 and Solaris 2.6, and both include . - On Cygwin, includes . + On Cygwin and OpenBSD, includes . Simply delegate to the system's header in this case. */ #if (@HAVE_SYS_SELECT_H@ = \ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H = \ @@ -39,6 +39,7 @@ || (!defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H = \ && ((defined __osf__ && defined _SYS_TIME_H_ = \ && defined _OSF_SOURCE) = \ + || (defined __OpenBSD__ && defined _SYS_TIME_H_) = \ || (defined __sun && defined _SYS_TIME_H = \ && (! (defined _XOPEN_SOURCE = \ || defined _POSIX_C_SOURCE) = \ --=20 2.30.2