diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-15 20:45:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:37 -0500 |
commit | ca256664aa4b65902b01ddf83564b7602560bd08 (patch) | |
tree | 1bd27730e748e2d76b8388191f4d023a27a46f66 | |
parent | edccfc91928c323f18febb7b90e41e0ddbfd8c7c (diff) | |
download | samba-ca256664aa4b65902b01ddf83564b7602560bd08.tar.gz samba-ca256664aa4b65902b01ddf83564b7602560bd08.tar.bz2 samba-ca256664aa4b65902b01ddf83564b7602560bd08.zip |
r21846: Try and fix the Darwin build which seems to have a strange krb5.
Jeremy.
(This used to be commit 1e32b44bfcf7676b3a9f208054fa853e7066eafc)
-rw-r--r-- | source3/libsmb/clikrb5.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index 659197214f..fa93bed63d 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -1449,7 +1449,13 @@ done: memset(&e, 0, sizeof(e)); krb5_us_timeofday(context, &e.stime, &e.susec); e.server = server; +#if defined(krb5_err_base) e.error = error_code - krb5_err_base; +#elif defined(ERROR_TABLE_BASE_krb5) + e.error = error_code - ERROR_TABLE_BASE_krb5; +#else + e.error = error_code; /* Almost certainly wrong, but what can we do... ? */ +#endif return krb5_mk_error(context, &e, reply); #else /* Heimdal. */ |