[openssh-commits] [openssh] 01/01: include netdb.h to look for MAXHOSTNAMELEN; ok tim

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Feb 25 11:50:42 AEDT 2015


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 38806bda6d2e48ad32812b461eebe17672ada771
Author: Damien Miller <djm at mindrot.org>
Date:   Tue Feb 24 16:50:06 2015 -0800

    include netdb.h to look for MAXHOSTNAMELEN; ok tim
---
 defines.h  | 1 +
 includes.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/defines.h b/defines.h
index d99ef68..b7dd1d9 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)
diff --git a/includes.h b/includes.h
index c3034e3..2893a54 100644
--- a/includes.h
+++ b/includes.h
@@ -27,7 +27,7 @@
 #include <sys/socket.h> /* For CMSG_* */
 
 #ifdef HAVE_LIMITS_H
-# include <limits.h> /* For PATH_MAX */
+# include <limits.h> /* For PATH_MAX, _POSIX_HOST_NAME_MAX */
 #endif
 #ifdef HAVE_BSTRING_H
 # include <bstring.h>

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list