Fix HAVE_WINSOCK for winsock32.lib

This commit is contained in:
Kurt Zeilenga 1999-03-01 21:08:07 +00:00
parent fd9fbb3306
commit a2aa1c38ec

View File

@ -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 ) {