Fix have inet_ntop bug

This commit is contained in:
Kurt Zeilenga 2001-05-09 23:41:16 +00:00
parent b57bc8b35b
commit d523048634

View File

@ -743,7 +743,7 @@ static Listener * slap_open_listener(
case AF_INET: {
char *s;
#if defined( HAVE_GETADDRINFO ) && defined( INET_NTOP )
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
char addr[INET_ADDRSTRLEN];
inet_ntop( AF_INET, &((struct sockaddr_in *)*sal)->sin_addr,
addr, sizeof(addr) );