6 * Solaris doesn't include the gethostname call by default.
8 #include <sys/utsname.h>
9 #include <sys/systeminfo.h>
14 * PUBLIC: #ifndef HAVE_GETHOSTNAME
15 * PUBLIC: int gethostname __P((char *, int));
19 gethostname(host
, len
)
23 return (sysinfo(SI_HOSTNAME
, host
, len
) == -1 ? -1 : 0);