From: Tom Yu Date: Fri, 5 Jul 2002 21:07:45 +0000 (+0000) Subject: * krb5_libinit.c: Conditionalized error table loading for X-Git-Tag: krb5-1.3-alpha1~614 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a83a33a8eedce0ba2f3209cabfafbe9fe062bbe;p=krb5.git * krb5_libinit.c: Conditionalized error table loading for Mac OS X. Error tables should always be loaded on other platforms. * krb5_libinit.c: Added an include for com_err.h since it is not included by error table headers on Mac OS X. Also fixed busted check for Mac OS [pullups form 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14605 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ChangeLog b/src/lib/krb5/ChangeLog index 02462c1cc..9d9c54a82 100644 --- a/src/lib/krb5/ChangeLog +++ b/src/lib/krb5/ChangeLog @@ -1,3 +1,15 @@ +2002-07-03 Alexandra Ellwood + + * krb5_libinit.c: Conditionalized error table loading for + Mac OS X. Error tables should always be loaded on other + platforms. + + * krb5_libinit.c: Added an include for com_err.h since + it is not included by error table headers on Mac OS X. Also + fixed busted check for Mac OS + + [pullups form 1-2-2-branch] + 2002-06-25 Alexandra Ellwood * krb5_libinit.c: Added an include for com_err.h since diff --git a/src/lib/krb5/krb5_libinit.c b/src/lib/krb5/krb5_libinit.c index c50dff187..27582b65f 100644 --- a/src/lib/krb5/krb5_libinit.c +++ b/src/lib/krb5/krb5_libinit.c @@ -21,10 +21,12 @@ krb5_error_code krb5int_initialize_library (void) { if (!initialized) { +#if !TARGET_OS_MAC || USE_HARDCODED_FALLBACK_ERROR_TABLES add_error_table(&et_krb5_error_table); add_error_table(&et_kv5m_error_table); add_error_table(&et_kdb5_error_table); add_error_table(&et_asn1_error_table); +#endif initialized = 1; } @@ -44,10 +46,12 @@ void krb5int_cleanup_library (void) krb5_stdcc_shutdown(); #endif +#if !TARGET_OS_MAC || USE_HARDCODED_FALLBACK_ERROR_TABLES remove_error_table(&et_krb5_error_table); remove_error_table(&et_kv5m_error_table); remove_error_table(&et_kdb5_error_table); remove_error_table(&et_asn1_error_table); +#endif initialized = 0; }