mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Fix HAVE_WINSOCK for winsock32.lib
This commit is contained in:
parent
fd9fbb3306
commit
a2aa1c38ec
@ -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 New Issue
Block a user