about summary refs log tree commit diff
path: root/library/std/src/sys/net/hostname/mod.rs
blob: a4b5b76059d301a151455f50ff3e2b7b5d30224b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cfg_select! {
    target_family = "unix" => {
        mod unix;
        pub use unix::hostname;
    }
    target_os = "windows" => {
        mod windows;
        pub use windows::hostname;
    }
    _ => {
        mod unsupported;
        pub use unsupported::hostname;
    }
}