Skip to content

Commit 6b8ef41

Browse files
committed
Auto merge of #1211 - asomers:netbsd_aio, r=gnzlbg
Fix linking aio_read(3) and friends on NetBSD The aio functions require librt on NetBSD.
2 parents ac6e2a7 + e2d584d commit 6b8ef41

File tree

1 file changed

+3
-0
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+3
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ f! {
10401040
}
10411041
}
10421042

1043+
#[link(name = "rt")]
10431044
extern {
10441045
pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int;
10451046
pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int;
@@ -1052,7 +1053,9 @@ extern {
10521053
pub fn aio_cancel(fd: ::c_int, aiocbp: *mut aiocb) -> ::c_int;
10531054
pub fn lio_listio(mode: ::c_int, aiocb_list: *const *mut aiocb,
10541055
nitems: ::c_int, sevp: *mut sigevent) -> ::c_int;
1056+
}
10551057

1058+
extern {
10561059
pub fn chflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;
10571060
pub fn fchflags(fd: ::c_int, flags: ::c_ulong) -> ::c_int;
10581061
pub fn lchflags(path: *const ::c_char, flags: ::c_ulong) -> ::c_int;

0 commit comments

Comments
 (0)