From: Howard Chu Date: Wed, 5 Mar 2003 01:33:36 +0000 (+0000) Subject: Add NI_MAXHOST if not defined; normally in on IPv6 systems X-Git-Tag: NO_SLAP_OP_BLOCKS~182 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac04ec0ca4cca7a192aace3051da37290554a2c1;p=openldap Add NI_MAXHOST if not defined; normally in on IPv6 systems --- diff --git a/include/ac/socket.h b/include/ac/socket.h index ded4c46968..c0590c2e3d 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -205,4 +205,9 @@ LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * )); LDAP_LUTIL_F( int ) getpeereid( int s, uid_t *, gid_t * ); #endif +/* DNS RFC defines max host name as 255. New systems seem to use 1024 */ +#ifndef NI_MAXHOST +#define NI_MAXHOST 256 +#endif + #endif /* _AC_SOCKET_H_ */