From ac04ec0ca4cca7a192aace3051da37290554a2c1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 5 Mar 2003 01:33:36 +0000 Subject: [PATCH] Add NI_MAXHOST if not defined; normally in on IPv6 systems --- include/ac/socket.h | 5 +++++ 1 file changed, 5 insertions(+) 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_ */ -- 2.39.5