remove gethosname, use proper types depending on bsd flavour
remove gethosname, use proper types depending on bsd flavour

rust-lang/libc,rust-lang-nursery/libc,rust-lang/libc,rust-lang/libc,rust-lang-nursery/libc,rust-lang-nursery/libc