X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..eeef255a56fa2a1551c88571cf4bc34eeb858ef8:/zotnet/mts/mts.c diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index 31d96bdd..61a604c6 100644 --- a/zotnet/mts/mts.c +++ b/zotnet/mts/mts.c @@ -5,6 +5,7 @@ * $Id$ */ +#include "h/mh.h" /* for snprintf() */ #include #define nmhetcdir(file) NMHETCDIR#file @@ -285,9 +286,9 @@ LocalName (void) /* first get our local name */ gethostname (buffer, sizeof(buffer)); #endif -#ifndef BIND +#ifdef HAVE_SETHOSTENT sethostent (1); -#endif +#endif /* now fully qualify our name */ if ((hp = gethostbyname (buffer))) strncpy (buffer, hp->h_name, sizeof(buffer));