Skip to content

Commit 95e5cdb

Browse files
committed
NetBSD: Make _cpuset an extern type
Our definition was correct for how it is defined internally, but in the header where it is included it is an incomplete definition. Link: https://github.com/NetBSD/src/blob/6017cb90fd7d83ed6e45d93129b12d525978c2fa/sys/sys/sched.h#L99
1 parent 8ff5e7e commit 95e5cdb

File tree

1 file changed

+4
-4
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ c_enum! {
4848
}
4949
}
5050

51+
extern_ty! {
52+
pub enum _cpuset {}
53+
}
54+
5155
cfg_if! {
5256
if #[cfg(target_pointer_width = "64")] {
5357
type Elf_Addr = Elf64_Addr;
@@ -519,10 +523,6 @@ s! {
519523
pub dlpi_tls_data: *mut c_void,
520524
}
521525

522-
pub struct _cpuset {
523-
bits: [u32; 0],
524-
}
525-
526526
pub struct accept_filter_arg {
527527
pub af_name: [c_char; 16],
528528
pub af_arg: [c_char; 256 - 16],

0 commit comments

Comments
 (0)