Fix BSD errors (hopefully)

This commit is contained in:
Fredrick Brennan 2018-03-04 13:11:04 +00:00
parent 99869e02ec
commit 6d959f1a53
2 changed files with 3 additions and 1 deletions

View File

@ -664,6 +664,9 @@ fn main() {
// the symbol.
"uname" if freebsd => true,
// FIXME: need to upgrade FreeBSD version; see https://github.com/rust-lang/libc/issues/938
"setgrent" if freebsd => true,
// aio_waitcomplete's return type changed between FreeBSD 10 and 11.
"aio_waitcomplete" if freebsd => true,

View File

@ -642,7 +642,6 @@ extern {
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::passwd) -> ::c_int;
#[cfg_attr(target_os = "netbsd", link_name = "__getgrent_r50")]
pub fn getgrent_r(grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,