From: Kurt Zeilenga Date: Mon, 1 Mar 1999 21:08:07 +0000 (+0000) Subject: Fix HAVE_WINSOCK for winsock32.lib X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~533 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2aa1c38ec2580ee6c57520316f0d74d3dd59071;p=openldap Fix HAVE_WINSOCK for winsock32.lib --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 5792b92e0a..53fdb9e547 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -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 ) {