From: Kurt Zeilenga Date: Mon, 25 Sep 2000 01:24:37 +0000 (+0000) Subject: Define INET{,6}_ADDRSTRLEN if needed X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1903 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff21d9d6b91c238c4552c77c5ae07ac689a9ad2e;p=openldap Define INET{,6}_ADDRSTRLEN if needed --- diff --git a/include/ac/socket.h b/include/ac/socket.h index c7a1629490..e48dcb8f84 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -186,4 +186,11 @@ LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * )); # endif #endif +#ifndef INET_ADDRSTRLEN +# define INET_ADDRSTRLEN 16 +#endif +#ifndef INET6_ADDRSTRLEN +# define INET6_ADDRSTRLEN 46 +#endif + #endif /* _AC_SOCKET_H_ */