Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pe = ["elf"]
elf = []

[dependencies]
vm-memory = ">=0.16.0, <=0.17.1"
vm-memory = { version = ">=0.16.0, <=0.17.1", default-features = false }

[dev-dependencies]
criterion = { version = "0.7.0", features = ["html_reports"] }
vm-memory = { version = ">=0.16.0, <=0.17.1", features = ["backend-mmap"] }
vm-memory = { version = ">=0.16.0, <=0.17.1", default-features = false, features = ["backend-mmap"] }

[[bench]]
name = "main"
Expand Down
2 changes: 2 additions & 0 deletions src/loader_gen/x86_64/bootparam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ pub struct __kernel_fd_set {
pub fds_bits: [::std::os::raw::c_ulong; 16usize],
}
#[test]
// On Windows the unsigned long size is 4 bytes, instead of 8
#[cfg(target_family = "unix")]
fn bindgen_test_layout___kernel_fd_set() {
Comment on lines 218 to 223
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is correct, since the fds_bits's size will be incorrect, should I change fds_bits to [::std::os::raw::c_ulonglong; 16usize] on Windows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const UNINIT: ::std::mem::MaybeUninit<__kernel_fd_set> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
Expand Down