]> git.sur5r.net Git - openldap/commitdiff
Use AF_INET instead of AF_UNSPEC when IPv6 disabled
authorStig Venaas <venaas@openldap.org>
Fri, 12 Jul 2002 15:36:33 +0000 (15:36 +0000)
committerStig Venaas <venaas@openldap.org>
Fri, 12 Jul 2002 15:36:33 +0000 (15:36 +0000)
libraries/libldap/os-ip.c
servers/slapd/daemon.c

index 61f8a7c0abcc796a710b075500e93a522d9b80d7..d8a6039978e70538cf9c518d5d99eb3c5ea880b4 100644 (file)
 int ldap_int_tblsize = 0;
 
 #if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
+#  ifdef LDAP_PF_INET6
 int ldap_int_inet4or6 = AF_UNSPEC;
+#  else
+int ldap_int_inet4or6 = AF_INET;
+#  endif
 #endif
 
 /*
index dcddb01a8e745711aa3b4aad433bfb186f359d2a..4c297f52d193ee8bb54c131fc0bf7af22d609226 100644 (file)
@@ -33,7 +33,11 @@ int deny_severity = LOG_NOTICE;
 #define LDAPI_MOD_URLEXT               "x-mod"
 #endif /* LDAP_PF_LOCAL */
 
+#ifdef LDAP_PF_INET6
 int slap_inet4or6 = AF_UNSPEC;
+#else
+int slap_inet4or6 = AF_INET;
+#endif
 
 /* globals */
 time_t starttime;