mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
35051d274f
commit
c01c000b16
@ -25,6 +25,7 @@
|
|||||||
#ifdef HAVE_GSSAPI
|
#ifdef HAVE_GSSAPI
|
||||||
#ifdef HAVE_OLD_GSSMIT
|
#ifdef HAVE_OLD_GSSMIT
|
||||||
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
||||||
|
#define NCOMPAT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_HTTP
|
#ifndef CURL_DISABLE_HTTP
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
#ifdef HAVE_OLD_GSSMIT
|
#ifdef HAVE_OLD_GSSMIT
|
||||||
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
||||||
|
#define NCOMPAT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#ifdef HAVE_GSSAPI
|
#ifdef HAVE_GSSAPI
|
||||||
#ifdef HAVE_OLD_GSSMIT
|
#ifdef HAVE_OLD_GSSMIT
|
||||||
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
|
||||||
|
#define NCOMPAT 1
|
||||||
#endif
|
#endif
|
||||||
#ifndef gss_nt_service_name
|
#ifndef gss_nt_service_name
|
||||||
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
|
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
|
||||||
|
Loading…
Reference in New Issue
Block a user