Skip to content
Snippets Groups Projects
Commit a2aa1c38 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix HAVE_WINSOCK for winsock32.lib

parent fd9fbb33
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment