From 9bcd248da1ef25b3ff3431248f53401e1123d74f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 2 Oct 2021 14:11:55 -0700 Subject: [PATCH] sys_select: port better to OpenBSD 6.9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit OpenBSD 6.9’s 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 1c73906258..9bae3c4a39 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’s 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 doc: Fix outdated statement about Spanish collation. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index f8ef648d48..910bea5d12 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -21,7 +21,7 @@ /* 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) \ -- 2.39.5