net/lftp: fix build after introduction of waitid(2)
With the introduction of waitid(2), <sys/wait.h> now includes <sys/siginfo.h>. gnulib wraps various system headers and those wrappers include further system headers. <signal.h> must include <sys/siginfo.h>, but gnulib ended up inverting this order, so siginfo_t was not yet defined in <signal.h>. Fix from gnulib upstream.
This commit is contained in:
parent
8ea209b8a9
commit
7bda56ec86
23
net/lftp/patches/patch-lib_sys_select_in_h
Normal file
23
net/lftp/patches/patch-lib_sys_select_in_h
Normal file
@ -0,0 +1,23 @@
|
||||
sys_select: port better to OpenBSD 6.9
|
||||
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=9bcd248da1ef25b3ff3431248f53401e1123d74f
|
||||
|
||||
Index: lib/sys_select.in.h
|
||||
--- lib/sys_select.in.h.orig
|
||||
+++ lib/sys_select.in.h
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
/* On OSF/1 and Solaris 2.6, <sys/types.h> and <sys/time.h>
|
||||
both include <sys/select.h>.
|
||||
- On Cygwin, <sys/time.h> includes <sys/select.h>.
|
||||
+ On Cygwin and OpenBSD, <sys/time.h> includes <sys/select.h>.
|
||||
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) \
|
Loading…
Reference in New Issue
Block a user