diff options
author | Miro Jurisic <meeroh@mit.edu> | 2001-07-05 15:56:45 +0000 |
---|---|---|
committer | Miro Jurisic <meeroh@mit.edu> | 2001-07-05 15:56:45 +0000 |
commit | 3b6adc7c159d3f07c570551058654a81a91e259e (patch) | |
tree | 09d1d9792f4062715f5e38136dc21fbeac327aac | |
parent | 7a2a56e33c79ed172236e226ab4399c46268aff5 (diff) | |
download | krb5-3b6adc7c159d3f07c570551058654a81a91e259e.zip krb5-3b6adc7c159d3f07c570551058654a81a91e259e.tar.gz krb5-3b6adc7c159d3f07c570551058654a81a91e259e.tar.bz2 |
Mac OS X: call through to ErrorLib
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-2@13561 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/util/et/ChangeLog | 4 | ||||
-rw-r--r-- | src/util/et/error_message.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 2c371a7..8d0546f 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +2001-07-05 Miro Jurisic <meeroh@mit.edu> + + * error_message.c: call through to ErrorLib on Mac OS X + 2001-04-02 Alexandra Ellwood <lxs@mit.edu> * et.pbexp: export com_err() on Mac OS X diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index 068fe5b..af80156 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -27,8 +27,9 @@ #include "com_err.h" #include "error_table.h" -#ifdef macintosh -#include <KerberosSupport/ErrorLib.h> +#if defined(macintosh) || (defined(__MACH__) && defined(__APPLE__)) + #include <KerberosSupport/KerberosSupport.h> + #include <KerberosSupport/ErrorLib.h> #endif #if defined(_MSDOS) || defined(_WIN32) @@ -150,7 +151,7 @@ KRB5_DLLIMP const char FAR * KRB5_CALLCONV error_message(code) oops: -#if defined(macintosh) +#if TARGET_OS_MAC { /* This may be a Mac OS Toolbox error or an MIT Support Library Error. Ask ErrorLib */ if (GetErrorLongString(code, buffer, ET_EBUFSIZ - 1) == noErr) { |