From 36a72afbc16db078053a7e7f14275a4489ba43bf Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Sun, 24 Apr 2016 15:36:54 +0200 Subject: [PATCH] Build fix when kerberos is not enabled Make sure Kerberos headers are not included if we build without it. --- ldap-krb5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldap-krb5.c b/ldap-krb5.c index 0fed4a3..416ed2a 100644 --- a/ldap-krb5.c +++ b/ldap-krb5.c @@ -98,12 +98,14 @@ static char rcsId[] = #include #include #include +#if defined(CONFIGURE_KRB5_KEYTAB) || defined(CONFIGURE_KRB5_CCNAME) #ifndef HEIMDAL #include #endif #ifdef HEIMDAL #define error_message(code) krb5_get_err_text(context,code) #endif +#endif /* CONFIGURE_KRB5_KEYTAB || CONFIGURE_KRB5_CCNAME */ #include #include #if defined(HAVE_GSSAPI_GSSAPI_KRB5_H)