diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2001-08-10 19:06:05 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2001-08-10 19:06:05 +0000 |
commit | 449e0e73056dc968960a115a9e94ffb9f22e8df0 (patch) | |
tree | cb4652a557a0ad295f42382e38654563f39a089b | |
parent | a3f38684b38489f4dd9c8327ae7dfac50adab9d8 (diff) | |
download | krb5-449e0e73056dc968960a115a9e94ffb9f22e8df0.zip krb5-449e0e73056dc968960a115a9e94ffb9f22e8df0.tar.gz krb5-449e0e73056dc968960a115a9e94ffb9f22e8df0.tar.bz2 |
error_message.c: call through to strerror on Mac OS X
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-2@13680 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/util/et/ChangeLog | 4 | ||||
-rw-r--r-- | src/util/et/error_message.c | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 8d0546f..8572dee 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +2001-08-10 Alexandra Ellwood <lxs@mit.edu> + + * error_message.c: call through to strerror on Mac OS X + 2001-07-05 Miro Jurisic <meeroh@mit.edu> * error_message.c: call through to ErrorLib on Mac OS X diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index af80156..19bf32b 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -49,7 +49,7 @@ extern const int sys_nerr; static char buffer[ET_EBUFSIZ]; -#if (defined(_MSDOS) || defined(_WIN32) || defined(macintosh) || defined(__MACH__)) +#if (defined(_MSDOS) || defined(_WIN32) || defined(macintosh) || (defined(__MACH__) && defined(__APPLE__)) static struct et_list * _et_list = (struct et_list *) NULL; #else /* Old interface compatibility */ @@ -157,6 +157,13 @@ oops: if (GetErrorLongString(code, buffer, ET_EBUFSIZ - 1) == noErr) { return buffer; } + +#if TARGET_API_MAC_OSX + /* ComErr and ErrorLib don't know about this error, ask the system */ + /* Of course there's no way to tell if it knew what error it got */ + return (strerror (code)); +#endif + } #endif |