]> 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)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 09:44:26 +0000 (11:44 +0200)
commite4894e685ce45855a1103145a60b7fce312f4498
tree12ec6a9ab0e565dfd7cf26a49e95c6adf82b1f78
parent7cef7955e7c74b10d697b7b24f6455c614719f88
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