X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2Fmts%2Fmts.c;h=61a604c6a728f0c17079114a0edccd044f714701;hb=f2cc76d9a760ebf86b61d609696999330449aecb;hp=31d96bdd92a8d43985c5e78bd5a139d3856042ba;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index 31d96bd..61a604c 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));