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
+2002-07-03 Alexandra Ellwood <lxs@mit.edu>
+
+ * 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 <lxs@mit.edu>
* krb5_libinit.c: Added an include for com_err.h since
{
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;
}
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;
}