Skip to content

Commit

Permalink
Build fix when kerberos is not enabled
Browse files Browse the repository at this point in the history
Make sure Kerberos headers are not included if we build
without it.

From upstream PADL#6
  • Loading branch information
manu0401 committed Jul 17, 2023
1 parent 4870a1a commit 2a46bf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldap-krb5.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ static char rcsId[] =
#include <string.h>
#include <errno.h>
#include <time.h>
#if defined(CONFIGURE_KRB5_KEYTAB) || defined(CONFIGURE_KRB5_CCNAME)
#ifndef HEIMDAL
#include <profile.h>
#endif
#ifdef HEIMDAL
#define error_message(code) krb5_get_err_text(context,code)
#endif
#endif /* CONFIGURE_KRB5_KEYTAB || CONFIGURE_KRB5_CCNAME */
#include <sys/types.h>
#include <assert.h>
#if defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
Expand Down

0 comments on commit 2a46bf4

Please sign in to comment.