blob: 9ed9afee3ec45ffdada3edb3873e20e78fa1ea39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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};
|