]> git.sur5r.net Git - openldap/commitdiff
Fix have inet_ntop bug
authorKurt Zeilenga <kurt@openldap.org>
Wed, 9 May 2001 23:41:16 +0000 (23:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 9 May 2001 23:41:16 +0000 (23:41 +0000)
servers/slapd/daemon.c

index b35c97169dc3661856f3b743a0a7dd7b2ca456e9..733272e57156e7b1c99b32ec228a11e32430f3ca 100644 (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) );