Use AF_INET instead of AF_UNSPEC when IPv6 disabled

This commit is contained in:
Stig Venaas 2002-07-12 15:36:33 +00:00
parent a6730db3e9
commit bf5e3a15ca
2 changed files with 8 additions and 0 deletions

View file

@ -31,7 +31,11 @@
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
/*

View 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;