From a2aa1c38ec2580ee6c57520316f0d74d3dd59071 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 1 Mar 1999 21:08:07 +0000 Subject: [PATCH] Fix HAVE_WINSOCK for winsock32.lib --- libraries/libldap/open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5