/* * $Id$ */ #include "config.h" /* * Solaris doesn't include the gethostname call by default. */ #include #include #include /* * PUBLIC: #ifndef HAVE_GETHOSTNAME * PUBLIC: int gethostname __P((char *, int)); * PUBLIC: #endif */ int gethostname(host, len) char *host; int len; { return (sysinfo(SI_HOSTNAME, host, len) == -1 ? -1 : 0); }