]> git.ipfire.org Git - thirdparty/util-linux.git/commit
kill: include sys/types.h before checking SYS_pidfd_send_signal
authorSami Kerola <kerolasa@iki.fi>
Sat, 15 Feb 2020 21:12:50 +0000 (21:12 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 15 Feb 2020 21:12:50 +0000 (21:12 +0000)
commit3cfde0370d3a8949df0c5bcf447cec6692910ed2
tree128a1a4d7eae7f4f64b40d21c8f90bf46c32ca60
parentd8ed9e038c4fe9399698c629a848069eda5df057
kill: include sys/types.h before checking SYS_pidfd_send_signal

Including sys/types.h must happen before SYS_pidfd_send_signal is checked,
because that header defines variable in normal conditions.  When sys/types.h
does not have SYS_pidfd_send_signal then fallback is defined in config.h
that is included by default, and has therefore worked fine before and after
this change.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/pidfd-utils.h