[openssh-commits] [openssh] 02/02: portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Feb 24 16:55:09 AEDT 2015


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

tim pushed a commit to branch master
in repository openssh.

commit 676c38d7cbe65b76bbfff796861bb6615cc6a596
Author: Tim Rice <tim at multitalents.net>
Date:   Mon Feb 23 21:51:33 2015 -0800

    portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
---
 defines.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/defines.h b/defines.h
index 1341606..d99ef68 100644
--- a/defines.h
+++ b/defines.h
@@ -110,6 +110,8 @@ enum
 #  define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
 # elif defined(MAXHOSTNAMELEN)
 #  define HOST_NAME_MAX MAXHOSTNAMELEN
+# else
+#  define HOST_NAME_MAX	255
 # endif
 #endif /* HOST_NAME_MAX */
 

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


More information about the openssh-commits mailing list