4 * Solaris doesn't include the gethostname call by default.
6 #include <sys/utsname.h>
7 #include <sys/systeminfo.h>
12 * PUBLIC: #ifndef HAVE_GETHOSTNAME
13 * PUBLIC: int gethostname __P((char *, int));
17 gethostname(host, len)
21 return (sysinfo(SI_HOSTNAME, host, len) == -1 ? -1 : 0);