aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/curl_gssapi.c6
-rw-r--r--lib/curl_gssapi.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/curl_gssapi.c b/lib/curl_gssapi.c
index 69c3c88d7..3b6b189e4 100644
--- a/lib/curl_gssapi.c
+++ b/lib/curl_gssapi.c
@@ -20,6 +20,10 @@
*
***************************************************************************/
+#include "setup.h"
+
+#ifdef HAVE_GSSAPI
+
#include "curl_gssapi.h"
OM_uint32 Curl_gss_init_sec_context(
@@ -46,3 +50,5 @@ OM_uint32 Curl_gss_init_sec_context(
ret_flags,
NULL /* time_rec */);
}
+
+#endif /* HAVE_GSSAPI */
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index c5b58db58..c5fbefe7a 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -22,6 +22,8 @@
#include "setup.h"
+#ifdef HAVE_GSSAPI
+
#ifdef HAVE_GSSGNU
# include <gss.h>
#elif defined HAVE_GSSMIT
@@ -45,3 +47,5 @@ OM_uint32 Curl_gss_init_sec_context(
gss_buffer_t input_token,
gss_buffer_t output_token,
OM_uint32 * ret_flags);
+
+#endif /* HAVE_GSSAPI */