mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix have inet_ntop bug
This commit is contained in:
parent
b57bc8b35b
commit
d523048634
@ -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) );
|
||||
|
Loading…
Reference in New Issue
Block a user