Skip to content

Commit e2d584d

Browse files
committed
Fix linking aio_read(3) and friends on NetBSD
The aio functions require librt on NetBSD.
1 parent ce1dfcb commit e2d584d

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
@@ -1039,6 +1039,7 @@ f! {
10391039
}
10401040
}
10411041

1042+
#[link(name = "rt")]
10421043
extern {
10431044
pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int;
10441045
pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int;
@@ -1051,7 +1052,9 @@ extern {
10511052
pub fn aio_cancel(fd: ::c_int, aiocbp: *mut aiocb) -> ::c_int;
10521053
pub fn lio_listio(mode: ::c_int, aiocb_list: *const *mut aiocb,
10531054
nitems: ::c_int, sevp: *mut sigevent) -> ::c_int;
1055+
}
10541056

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

0 commit comments

Comments
 (0)