=== modified file 'helpers/external_acl/kerberos_ldap_group/support.h' --- helpers/external_acl/kerberos_ldap_group/support.h 2010-08-23 13:15:48 +0000 +++ helpers/external_acl/kerberos_ldap_group/support.h 2010-12-04 12:37:35 +0000 @@ -28,53 +28,43 @@ #include #endif -#if HAVE_HEIMDAL_KERBEROS #if HAVE_GSSAPI_GSSAPI_H #include #elif HAVE_GSSAPI_H #include #endif /* HAVE_GSSAPI_GSSAPI_H/HAVE_GSSAPI_H */ + +#if !HAVE_HEIMDAL_KERBEROS +#if HAVE_GSSAPI_GSSAPI_KRB5_H +#include +#endif +#if HAVE_GSSAPI_GSSAPI_GENERIC_H +#include +#endif +#if HAVE_GSSAPI_GSSAPI_EXT_H +#include +#endif +#endif + #if HAVE_KRB5_H #if HAVE_BROKEN_SOLARIS_KRB5_H -#warn "Warning! You have a broken Solaris fsystem header" +#warn "Warning! You have a broken Solaris system header" #warn "http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6837512" +#if defined(__cplusplus) +#define KRB5INT_BEGIN_DECLS extern "C" { +#define KRB5INT_END_DECLS +KRB5INT_BEGIN_DECLS +#endif #endif /* HAVE_BROKEN_SOLARIS_KRB5_H */ #include #endif /* HAVE_KRB5_H */ + #if HAVE_COM_ERR_H #include -#else +#elif HAVE_HEIMDAL_KERBEROS #define error_message(code) krb5_get_err_text(kparam.context,code) #endif /* HAVE_COM_ERR_H */ -#else /*MIT */ -#ifdef HAVE_GSSAPI_GSSAPI_H -#include -#elif defined(HAVE_GSSAPI_H) -#include -#endif -#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H -#include -#endif -#ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H -#include -#endif -#ifdef HAVE_GSSAPI_GSSAPI_EXT_H -#include -#endif -#ifdef HAVE_KRB5_H -#if HAVE_BROKEN_SOLARIS_KRB5_H -#if defined(__cplusplus) -#define KRB5INT_BEGIN_DECLS extern "C" { -#define KRB5INT_END_DECLS -KRB5INT_BEGIN_DECLS -#endif -#endif -#include -#endif -#ifdef HAVE_COM_ERR_H -#include -#endif -#endif + #ifndef gss_nt_service_name #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE #endif