diff options
author | Stephen Barber <smbarber@chromium.org> | 2018-11-05 16:02:26 -0800 |
---|---|---|
committer | Stephen Barber <smbarber@chromium.org> | 2018-11-06 16:51:20 -0800 |
commit | 60ab3041a1ba8079ed27c767728a18c003eee375 (patch) | |
tree | ff4fe0915a4f87246a6d03457f11c348983c5778 /libc-test/build.rs | |
parent | 9c5e70ae306463a23ec02179ac2c9fe05c3fb44e (diff) | |
download | rust-libc-60ab3041a1ba8079ed27c767728a18c003eee375.tar.gz |
Add support for SIGSYS in signalfd
Linux 4.18 added support for SIGSYS info in signalfd. Add the new
fields to signalfd_siginfo.
While the kernel has support for these new fields now, no libc has
shipped a release with the new signalfd fields.
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index be148b83fb..6723b2723a 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -841,7 +841,13 @@ fn main() { // musl seems to define this as an *anonymous* bitfield (musl && struct_ == "statvfs" && field == "__f_unused") || // sigev_notify_thread_id is actually part of a sigev_un union - (struct_ == "sigevent" && field == "sigev_notify_thread_id") + (struct_ == "sigevent" && field == "sigev_notify_thread_id") || + // signalfd had SIGSYS fields added in Linux 4.18, but no libc release has them yet. + (struct_ == "signalfd_siginfo" && (field == "ssi_addr_lsb" || + field == "_pad2" || + field == "ssi_syscall" || + field == "ssi_call_addr" || + field == "ssi_arch")) }); cfg.fn_cname(move |name, cname| { |