projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added include of mh.h for snprintf() prototype.
[mmh]
/
zotnet
/
mts
/
mts.c
diff --git
a/zotnet/mts/mts.c
b/zotnet/mts/mts.c
index
31d96bd
..
61a604c
100644
(file)
--- a/
zotnet/mts/mts.c
+++ b/
zotnet/mts/mts.c
@@
-5,6
+5,7
@@
* $Id$
*/
* $Id$
*/
+#include "h/mh.h" /* for snprintf() */
#include <h/nmh.h>
#define nmhetcdir(file) NMHETCDIR#file
#include <h/nmh.h>
#define nmhetcdir(file) NMHETCDIR#file
@@
-285,9
+286,9
@@
LocalName (void)
/* first get our local name */
gethostname (buffer, sizeof(buffer));
#endif
/* first get our local name */
gethostname (buffer, sizeof(buffer));
#endif
-#ifndef BIND
+#ifdef HAVE_SETHOSTENT
sethostent (1);
sethostent (1);
-#endif
+#endif
/* now fully qualify our name */
if ((hp = gethostbyname (buffer)))
strncpy (buffer, hp->h_name, sizeof(buffer));
/* now fully qualify our name */
if ((hp = gethostbyname (buffer)))
strncpy (buffer, hp->h_name, sizeof(buffer));