diff options
Diffstat (limited to 'editors/zed/files/patch-crates_gpui_examples_layer__shell.rs')
| -rw-r--r-- | editors/zed/files/patch-crates_gpui_examples_layer__shell.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/zed/files/patch-crates_gpui_examples_layer__shell.rs b/editors/zed/files/patch-crates_gpui_examples_layer__shell.rs new file mode 100644 index 000000000000..9ed9afee3ec4 --- /dev/null +++ b/editors/zed/files/patch-crates_gpui_examples_layer__shell.rs @@ -0,0 +1,18 @@ +--- crates/gpui/examples/layer_shell.rs.orig 2025-11-15 06:20:54 UTC ++++ crates/gpui/examples/layer_shell.rs +@@ -1,12 +1,12 @@ fn main() { + fn main() { +- #[cfg(all(target_os = "linux", feature = "wayland"))] ++ #[cfg(all(any(target_os = "linux", target_os = "freebsd"), feature = "wayland"))] + example::main(); + +- #[cfg(not(all(target_os = "linux", feature = "wayland")))] ++ #[cfg(not(all(any(target_os = "linux", target_os = "freebsd"), feature = "wayland")))] + panic!("This example requires the `wayland` feature and a linux system."); + } + +-#[cfg(all(target_os = "linux", feature = "wayland"))] ++#[cfg(all(any(target_os = "linux", target_os = "freebsd"), feature = "wayland"))] + mod example { + use std::time::{Duration, SystemTime, UNIX_EPOCH}; + |
