Skip to content

Commit 6d959f1

Browse files
committed
Fix BSD errors (hopefully)
1 parent 99869e0 commit 6d959f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ fn main() {
664664
// the symbol.
665665
"uname" if freebsd => true,
666666

667+
// FIXME: need to upgrade FreeBSD version; see https://github.com/rust-lang/libc/issues/938
668+
"setgrent" if freebsd => true,
669+
667670
// aio_waitcomplete's return type changed between FreeBSD 10 and 11.
668671
"aio_waitcomplete" if freebsd => true,
669672

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,6 @@ extern {
642642
buf: *mut ::c_char,
643643
buflen: ::size_t,
644644
result: *mut *mut ::passwd) -> ::c_int;
645-
#[cfg_attr(target_os = "netbsd", link_name = "__getgrent_r50")]
646645
pub fn getgrent_r(grp: *mut ::group,
647646
buf: *mut ::c_char,
648647
buflen: ::size_t,

0 commit comments

Comments
 (0)