mesa3d: util: rust: add proper stubs
Fixes some errors when compiling on non-traditional platforms. Reviewed-by: David Gilhooley <djgilhooley.gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37097>
This commit is contained in:
committed by
Marge Bot
parent
68f957292e
commit
8a9baab791
@@ -10,6 +10,9 @@ pub mod stub;
|
||||
#[cfg(windows)]
|
||||
pub mod windows;
|
||||
|
||||
// Only Linux works for all cases. Windows works for HANDLEs.
|
||||
// Tracking bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13826
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(any(target_os = "android", target_os = "linux"))] {
|
||||
pub use linux as platform;
|
||||
|
||||
@@ -42,3 +42,9 @@ impl Listener {
|
||||
Err(MesaError::Unsupported)
|
||||
}
|
||||
}
|
||||
|
||||
impl AsBorrowedDescriptor for Listener {
|
||||
fn as_borrowed_descriptor(&self) -> &OwnedDescriptor {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,3 +42,9 @@ impl Listener {
|
||||
Err(MesaError::Unsupported)
|
||||
}
|
||||
}
|
||||
|
||||
impl AsBorrowedDescriptor for Listener {
|
||||
fn as_borrowed_descriptor(&self) -> &OwnedDescriptor {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user