diff options
author | Günther Deschner <gd@samba.org> | 2009-11-27 01:06:36 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-01-13 14:01:02 +0100 |
commit | e9d846263b692c47550fc0ae0dbdf073886934bf (patch) | |
tree | d281c4571b07004e0554fec246e70aee9dd34efc | |
parent | 1114a6f46d645e674ea362a771beb8498ba79855 (diff) | |
download | samba-e9d846263b692c47550fc0ae0dbdf073886934bf.tar.gz |
s3-kerberos: Fix Bug #6929: build with recent heimdal.
Heimdal changed the KRB5_DEPRECATED define (which now may not take an identifier
for activation) in new releases (like 1.3.1).
Guenther
(cherry picked from commit 1a8f8382740e352a83133b8c49aaedd4716210cd)
(cherry picked from commit a6572bb03fcd323ce03b22ccd713181235f3b0e6)
-rw-r--r-- | source/configure.in | 19 | ||||
-rw-r--r-- | source/libsmb/clikrb5.c | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/source/configure.in b/source/configure.in index 1092d00b17d..6594e7cca46 100644 --- a/source/configure.in +++ b/source/configure.in @@ -3550,6 +3550,25 @@ if test x"$with_ads_support" != x"no"; then WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT" EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR" fi + + # check for new heimdal KRB5_DEPRECATED handling + + AC_CACHE_CHECK([for KRB5_DEPRECATED define taking an identifier], + samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER,[ + AC_TRY_COMPILE( + [#define KRB5_DEPRECATED 1 + #include <krb5.h>], + [void main(void) {}], + samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=yes, + samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=no)]) + + if test x"$samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" = x"yes"; then + AC_DEFINE(KRB5_DEPRECATED, 1, + [Whether to use deprecated krb5 interfaces]) + else + AC_DEFINE(KRB5_DEPRECATED,, + [Whether to use deprecated krb5 interfaces]) + fi fi # Now we have determined whether we really want ADS support diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index 231938790b9..666ca086339 100644 --- a/source/libsmb/clikrb5.c +++ b/source/libsmb/clikrb5.c @@ -21,7 +21,7 @@ */ #define KRB5_PRIVATE 1 /* this file uses PRIVATE interfaces! */ -#define KRB5_DEPRECATED 1 /* this file uses DEPRECATED interfaces! */ +/* this file uses DEPRECATED interfaces! */ #include "includes.h" |