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.
This commit is contained in:
parent
8bed48a751
commit
969ad2b73c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue