--- include/ac/socket.h 2003/02/09 17:02:17 1.54.2.2 +++ include/ac/socket.h 2003/03/05 23:48:31 1.54.2.3 @@ -1,5 +1,5 @@ /* Generic socket.h */ -/* $OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.57 2003/01/03 19:20:50 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.54.2.2 2003/02/09 17:02:17 kurt Exp $ */ /* * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. @@ -205,4 +205,9 @@ LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( 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_ */