From 24b30d259caf2317bc38873b2f6ee20dd9682cc7 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 12 Dec 2014 22:08:03 +0000 Subject: smb: Disable SMB when 64-bit integers are not supported This fixes compilation issues with compilers that don't support 64-bit integers through long long or __int64. --- lib/smb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/smb.c') diff --git a/lib/smb.c b/lib/smb.c index 4d556488e..5e329c154 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -22,7 +22,8 @@ #include "curl_setup.h" -#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) +#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \ + (CURL_SIZEOF_CURL_OFF_T > 4) #if !defined(USE_WINDOWS_SSPI) || defined(USE_WIN32_CRYPTO) @@ -902,4 +903,4 @@ static CURLcode smb_parse_url_path(struct connectdata *conn) #endif /* !USE_WINDOWS_SSPI || USE_WIN32_CRYPTO */ -#endif /* CURL_DISABLE_SMB && USE_NTLM */ +#endif /* CURL_DISABLE_SMB && USE_NTLM && CURL_SIZEOF_CURL_OFF_T > 4 */ -- cgit v1.2.3