mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
1136e3b115
Fix some compatibility issues in crosvm to allow it compile against musl libc: - Ioctl numbers are ints like bionic, not unsigned long like glibc. - The sched_param struct has extra fields that must be initialized, zero initialize the whole struct. - libc::pthread_t is void* and doesn't match std::os::unix:🧵:RawPthread, it needs a cast. - Some msghdr and cmsghdr fields are u32 instead of usize. - cmsghdr has an extra __pad1 fields that must be initialized, zero initialize the whole struct. - msghdr has private __pad1 and __pad2 fields that cannot be initialized, zero initialize the whole struct. Bug: 216192129 Test: m USE_HOST_MUSL=true crosvm Change-Id: I0652148e09b9a4d167801b002036ec5a575d3bb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3651504 Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
base_poll_token_derive | ||
src | ||
.build_test_serial | ||
Cargo.toml |