summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-02-24 16:50:06 -0800
committerDamien Miller <djm@mindrot.org>2015-02-24 16:50:36 -0800
commit38806bda6d2e48ad32812b461eebe17672ada771 (patch)
tree40973ef6e20b8e8fe26ddc6183cf586c583fe61c /defines.h
parentd1db656021d0cd8c001a6692f772f1de29b67c8b (diff)
include netdb.h to look for MAXHOSTNAMELEN; ok tim
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index d99ef68a..b7dd1d9c 100644
--- a/defines.h
+++ b/defines.h
@@ -106,6 +106,7 @@ enum
#endif /* MAXPATHLEN */
#ifndef HOST_NAME_MAX
+# include "netdb.h" /* for MAXHOSTNAMELEN */
# if defined(_POSIX_HOST_NAME_MAX)
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
# elif defined(MAXHOSTNAMELEN)