Skip to content

Commit 14f2bc5

Browse files
committed
NetBSD: Fix the type of kevent.udata
This changed in 10.0. The change is ABI-compatible so we can make it now. This is a minor break, but should allow users to remove some special casing on NetBSD since this brings it in line with other BSDs. Link: https://github.com/NetBSD/src/blob/6017cb90fd7d83ed6e45d93129b12d525978c2fa/sys/sys/event.h#L72
1 parent 3bb84eb commit 14f2bc5

File tree

1 file changed

+1
-2
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ s! {
299299
pub flags: u32,
300300
pub fflags: u32,
301301
pub data: i64,
302-
// FIXME(netbsd): NetBSD 10.0 will finally have same layout as other BSD
303-
pub udata: intptr_t,
302+
pub udata: *mut c_void,
304303
}
305304

306305
pub struct dqblk {

0 commit comments

Comments
 (0)