Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 7a84640

Browse files
committed
Added desc_struct to opaque list
1 parent 157ede8 commit 7a84640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ const INCLUDED_VARS: &[&str] = &[
3434
"KERN_INFO",
3535
"VERIFY_WRITE",
3636
];
37-
/// The xregs_state struct must be opaque because it is both packed
37+
/// These structs must be opaque because they're both packed
3838
/// and aligned, which is not yet supported by rust. See
3939
/// https://github.com/rust-lang/rust/issues/59154 and
4040
/// https://github.com/rust-lang/rust-bindgen/issues/1538
4141
const OPAQUE_TYPES: &[&str] = &[
4242
"^xregs_state$",
43+
"^desc_struct$",
4344
];
4445

4546
fn main() {

0 commit comments

Comments
 (0)