diff options
author | Karl Ramm <kcr@1ts.org> | 2009-04-02 23:58:21 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2009-04-02 23:58:21 +0000 |
commit | 0371c85f2661c041bedc1a9ab21acace224b302e (patch) | |
tree | 45f67d6ac2d8e56b5afbf242270b00886d7878dd /lib | |
parent | 4ef6b36f177c3013b292a709c401e2fa3b3dac55 (diff) |
apple error table initialization for #41
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZInit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ZInit.c b/lib/ZInit.c index 6a9149a..2113c8d 100644 --- a/lib/ZInit.c +++ b/lib/ZInit.c @@ -59,14 +59,22 @@ ZInitialize(void) #endif #endif + /* On OS X you don't need to initialize the Kerberos error tables + as long as you link with -framework Kerberos */ +#if !(defined(__APPLE__) && defined(__MACH__)) #ifdef HAVE_KRB4 initialize_krb_error_table(); #endif #ifdef HAVE_KRB5 initialize_krb5_error_table(); #endif +#endif +#if defined(__APPLE__) && defined(__MACH__) + add_error_table(&et_zeph_error_table); +#else initialize_zeph_error_table(); +#endif (void) memset((char *)&__HM_addr, 0, sizeof(__HM_addr)); |