Skip to content

Commit 04cd0d2

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 (backport <#4782>) (cherry picked from commit 14f2bc5)
1 parent 84c1b75 commit 04cd0d2

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
@@ -300,8 +300,7 @@ s! {
300300
pub flags: u32,
301301
pub fflags: u32,
302302
pub data: i64,
303-
// FIXME(netbsd): NetBSD 10.0 will finally have same layout as other BSD
304-
pub udata: intptr_t,
303+
pub udata: *mut c_void,
305304
}
306305

307306
pub struct dqblk {

0 commit comments

Comments
 (0)