3 #![warn(clippy::mismatched_target_os)]
6 #[cfg(target_os = "linux")]
9 #[cfg(target_os = "freebsd")]
12 #[cfg(target_os = "dragonfly")]
15 #[cfg(target_os = "openbsd")]
18 #[cfg(target_os = "netbsd")]
21 #[cfg(target_os = "macos")]
24 #[cfg(target_os = "ios")]
27 #[cfg(target_os = "android")]
30 #[cfg(target_os = "emscripten")]
33 #[cfg(target_os = "fuchsia")]
36 #[cfg(target_os = "haiku")]
39 #[cfg(target_os = "illumos")]
42 #[cfg(target_os = "l4re")]
45 #[cfg(target_os = "redox")]
48 #[cfg(target_os = "solaris")]
51 #[cfg(target_os = "vxworks")]
54 // list with conditions
55 #[cfg(all(not(any(target_os = "solaris", target_os = "linux")), target_os = "freebsd"))]
58 // correct use, should be ignored
59 #[cfg(target_os = "freebsd")]