From: Paul Eggert Date: Sat, 2 Oct 2021 21:11:55 +0000 (-0700) Subject: sys_select: port better to OpenBSD 6.9 X-Git-Tag: v1.0~2576 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9bcd248da1ef25b3ff3431248f53401e1123d74f;p=gnulib.git 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 . --- 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) \