Fix solaris build (#1924)

This commit is contained in:
Dzmitry Malyshau 2021-09-08 17:22:23 -04:00 committed by GitHub
parent 76bcd9c494
commit 797c9c83d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,7 +596,7 @@ impl crate::Instance<super::Api> for Instance {
return Err(crate::InstanceError); return Err(crate::InstanceError);
} }
} }
#[cfg(not(any(target_os = "android", target_os = "macos")))] #[cfg(not(any(target_os = "android", target_os = "macos", target_os = "solaris")))]
Rwh::Wayland(handle) => { Rwh::Wayland(handle) => {
/* Wayland displays are not sharable between surfaces so if the /* Wayland displays are not sharable between surfaces so if the
* surface we receive from this handle is from a different * surface we receive from this handle is from a different
@ -844,7 +844,11 @@ impl crate::Surface<super::Api> for Surface {
} }
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
Rwh::Android(handle) => handle.a_native_window, Rwh::Android(handle) => handle.a_native_window,
#[cfg(not(any(target_os = "android", target_os = "macos")))] #[cfg(not(any(
target_os = "android",
target_os = "macos",
target_os = "solaris"
)))]
Rwh::Wayland(handle) => { Rwh::Wayland(handle) => {
let library = self.wsi_library.as_ref().expect("unsupported window"); let library = self.wsi_library.as_ref().expect("unsupported window");
let wl_egl_window_create: libloading::Symbol<WlEglWindowCreateFun> = let wl_egl_window_create: libloading::Symbol<WlEglWindowCreateFun> =