From dcd484a23859a3c7107f81ca9f54fed9d81eb2ca Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 7 Dec 2014 20:44:57 +0000 Subject: smb: Fixed Windows autoconf builds following commit eb88d778e7 As Windows based autoconf builds don't yet define USE_WIN32_CRYPTO either explicitly through --enable-win32-cypto or automatically on _WIN32 based platforms, subsequent builds broke with the following error message: "Can't compile NTLM support without a crypto library." --- lib/version.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/version.c') diff --git a/lib/version.c b/lib/version.c index 4b583e8e5..83143f402 100644 --- a/lib/version.c +++ b/lib/version.c @@ -216,7 +216,8 @@ static const char * const protocols[] = { #ifdef USE_LIBSSH2 "sftp", #endif -#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) +#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \ + (!defined(USE_WINDOWS_SSPI) || defined(USE_WIN32_CRYPTO)) "smb", # ifdef USE_SSL "smbs", -- cgit v1.2.3