summaryrefslogtreecommitdiff
path: root/lib/socks_gssapi.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-07-28 14:03:07 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-07-28 14:04:13 -0700
commitc01c000b1631591a2b7d78450fee5bf21990e993 (patch)
tree56deb52a5a20f3eb3bd879a22987cb6ee827ab52 /lib/socks_gssapi.c
parent35051d274f552ecf9542bc524fe665e94259a213 (diff)
downloadcurl-c01c000b1631591a2b7d78450fee5bf21990e993.tar.gz
Avoid a "shadows global declaration" warning on old MIT Kerberos
Defining NCOMPAT eliminates the backwards-compatibility macros that are the source of the problem and which we don't need, anyway.
Diffstat (limited to 'lib/socks_gssapi.c')
-rw-r--r--lib/socks_gssapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c
index de136b037..74b074ee1 100644
--- a/lib/socks_gssapi.c
+++ b/lib/socks_gssapi.c
@@ -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