X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..7736b0a60c15cc20db0ba8c3e0fe8e11d1c78c20:/zotnet/mts/mts.c diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index 31d96bdd..f53a8be6 100644 --- a/zotnet/mts/mts.c +++ b/zotnet/mts/mts.c @@ -285,9 +285,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));