Skip to content

Commit f093861

Browse files
committed
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.
2 parents 677b645 + 969ad2b commit f093861

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ extern {
10521052
serv: *mut ::c_char,
10531053
servlen: ::size_t,
10541054
flags: ::c_int) -> ::c_int;
1055+
#[cfg_attr(target_os = "freebsd", link_name = "kevent@FBSD_1.0")]
10551056
pub fn kevent(kq: ::c_int,
10561057
changelist: *const ::kevent,
10571058
nchanges: ::c_int,

0 commit comments

Comments
 (0)