aboutsummaryrefslogtreecommitdiff
path: root/clib/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'clib/gethostname.c')
-rw-r--r--clib/gethostname.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/clib/gethostname.c b/clib/gethostname.c
deleted file mode 100644
index 5b8e85acf9f2..000000000000
--- a/clib/gethostname.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "config.h"
-
-/*
- * Solaris doesn't include the gethostname call by default.
- */
-#include <sys/utsname.h>
-#include <sys/systeminfo.h>
-
-#include <netdb.h>
-
-/*
- * 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);
-}