| 1 | cfg_select! { |
|---|---|
| 2 | all(target_family = "unix", not(target_os = "espidf")) => { |
| 3 | mod unix; |
| 4 | pub use unix::hostname; |
| 5 | } |
| 6 | // `GetHostNameW` is only available starting with Windows 8. |
| 7 | all(target_os = "windows", not(target_vendor = "win7")) => { |
| 8 | mod windows; |
| 9 | pub use windows::hostname; |
| 10 | } |
| 11 | _ => { |
| 12 | mod unsupported; |
| 13 | pub use unsupported::hostname; |
| 14 | } |
| 15 | } |
| 16 |
