Skip to content

Commit ac8cd41

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 (backport <#4782>) (cherry picked from commit 95e5cdb)
1 parent 8490147 commit ac8cd41

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
@@ -49,6 +49,10 @@ e! {
4949
}
5050
}
5151

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

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

0 commit comments

Comments
 (0)