* krb5_libinit.c: Conditionalize call to stdcc_shutdown()
authorTom Yu <tlyu@mit.edu>
Mon, 24 Jan 2000 20:42:45 +0000 (20:42 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 24 Jan 2000 20:42:45 +0000 (20:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11965 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ChangeLog
src/lib/krb5/krb5_libinit.c

index 50fa5131c664ca197cfe06c64f67d759916200aa..c8a04638757ac348c51b1e85d445beffcd746442 100644 (file)
@@ -1,5 +1,7 @@
 2000-01-24  Tom Yu  <tlyu@mit.edu>
 
+       * krb5_libinit.c: Conditionalize call to stdcc_shutdown().
+
        * configure.in: Fix to build library objects in this directory.
 
        * Makefile.in (STOBJLISTS): Fix to actually build krb5_libinit.o.
index aae213699a3cc848203324ab6fec4973851ec030..beeb06dbbc9c328c556c7a5b2e9373eed2f3acd6 100644 (file)
@@ -34,13 +34,15 @@ krb5_error_code krb5int_initialize_library (void)
 void krb5int_cleanup_library (void)
 {
        assert (initialized);
-       
+
+#if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
        krb5_stdcc_shutdown();
+#endif
        
-    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);
+       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);
        
        initialized = 0;
 }