X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2Fmts%2Fmts.c;fp=zotnet%2Fmts%2Fmts.c;h=f53a8be62f82808fb0f2bc10ce415d8341e910a2;hb=3d251965606d6a6e47897504594f84d12e3e292a;hp=31d96bdd92a8d43985c5e78bd5a139d3856042ba;hpb=aa8860b86ba41d70c454d5d824835c8cd92a1555;p=mmh diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index 31d96bd..f53a8be 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));