diff options
author | bors <bors@rust-lang.org> | 2018-03-01 20:50:57 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2018-03-01 20:50:57 +0000 |
commit | f0938610e56c27403e8bc63e131269a06c0a95f7 (patch) | |
tree | 2901bc0bd3201059e073498e415d28301dfdeba7 /src/unix | |
parent | 677b64535362b3f7a8adf378960942104a1bff4d (diff) | |
parent | 969ad2b73cdc928b88f6db8f31916bbe294764c0 (diff) | |
download | rust-libc-f0938610e56c27403e8bc63e131269a06c0a95f7.tar.gz |
Auto merge of #936 - bdrewery:freebsd-kevent-compat, r=alexcrichton
Link against kevent@FBSD_1.0 to fix ABI compat with FreeBSD12.
struct kevent was modified in FreeBSD12. The @FBSD_1.0 symbol supports the old
structure ABI still.
This allows the `mio` crate tests to now pass on FreeBSD12.
Diffstat (limited to 'src/unix')
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index df32d2c427..2a3d8fb181 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1052,6 +1052,7 @@ extern { serv: *mut ::c_char, servlen: ::size_t, flags: ::c_int) -> ::c_int; + #[cfg_attr(target_os = "freebsd", link_name = "kevent@FBSD_1.0")] pub fn kevent(kq: ::c_int, changelist: *const ::kevent, nchanges: ::c_int, |