mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
Fix HAVE_WINSOCK for winsock32.lib
This commit is contained in:
parent
fd9fbb3306
commit
a2aa1c38ec
1 changed files with 3 additions and 1 deletions
|
|
@ -132,9 +132,11 @@ ldap_init( char *defhost, int defport )
|
|||
} /* The WinSock DLL is acceptable. Proceed. */
|
||||
|
||||
#elif HAVE_WINSOCK
|
||||
if ( WSAStartup( 0x0101, &wsadata ) != 0 ) {
|
||||
{ WSADATA wsaData
|
||||
if ( WSAStartup( 0x0101, &wsaData ) != 0 ) {
|
||||
return( NULL );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( (ld = (LDAP *) calloc( 1, sizeof(LDAP) )) == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue