diff --git a/lib/ldap.c b/lib/ldap.c index f5a44c69eb..095fbeb0b8 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -45,7 +45,11 @@ #ifdef CURL_LDAP_WIN /* Use W$ LDAP implementation. */ # include -# include +# ifndef LDAP_VENDOR_NAME +# error Your Platform SDK is NOT sufficient for LDAP support! Update your Platform SDK, or disable LDAP LDAP support! +# else +# include +# endif #else #define LDAP_DEPRECATED 1 /* Be sure ldap_init() is defined. */ # include