]> granicus.if.org Git - curl/commitdiff
http_negotiate_sspi: Fixed compilation when USE_HTTP_NEGOTIATE not defined
authorSteve Holme <steve_holme@hotmail.com>
Sun, 6 Apr 2014 00:22:47 +0000 (01:22 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 6 Apr 2014 00:46:53 +0000 (01:46 +0100)
lib/http_negotiate_sspi.c

index 9842ac87a5f6e6eae50bb70fd01cc1df20e81baa..8396a6197829798923a38399a0bce9ec0853050d 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -24,7 +24,7 @@
 
 #ifdef USE_WINDOWS_SSPI
 
-#ifndef CURL_DISABLE_HTTP
+#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP_NEGOTIATE)
 
 #include "urldata.h"
 #include "sendf.h"
@@ -300,6 +300,6 @@ void Curl_cleanup_negotiate(struct SessionHandle *data)
   cleanup(&data->state.proxyneg);
 }
 
+#endif /* !CURL_DISABLE_HTTP && USE_HTTP_NEGOTIATE */
 
-#endif
-#endif
+#endif /* USE_WINDOWS_SSPI */