provide safe_gethostname() for non-linux systems

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1 file changed