Avoid a "shadows global declaration" warning on old MIT Kerberos
authorDan Fandrich <dan@coneharvesters.com>
Thu, 28 Jul 2011 21:03:07 +0000 (14:03 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 28 Jul 2011 21:04:13 +0000 (14:04 -0700)
Defining NCOMPAT eliminates the backwards-compatibility macros
that are the source of the problem and which we don't need,
anyway.

lib/http_negotiate.c
lib/krb5.c
lib/socks_gssapi.c

index d7bc679..695ab16 100644 (file)
@@ -25,6 +25,7 @@
 #ifdef HAVE_GSSAPI
 #ifdef HAVE_OLD_GSSMIT
 #define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
+#define NCOMPAT 1
 #endif
 
 #ifndef CURL_DISABLE_HTTP
index c29f95b..1f7038f 100644 (file)
@@ -39,6 +39,7 @@
 
 #ifdef HAVE_OLD_GSSMIT
 #define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
+#define NCOMPAT 1
 #endif
 
 #ifdef HAVE_NETDB_H
index de136b0..74b074e 100644 (file)
@@ -27,6 +27,7 @@
 #ifdef HAVE_GSSAPI
 #ifdef HAVE_OLD_GSSMIT
 #define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
+#define NCOMPAT 1
 #endif
 #ifndef gss_nt_service_name
 #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE