Skip to content

Commit

Permalink
Link against kevent@FBSD_1.0 to fix ABI compat with FreeBSD12.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bdrewery committed Mar 1, 2018
1 parent 8bed48a commit 969ad2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 969ad2b

Please sign in to comment.