From a8f5355d8bd6dfce2cfafd680309df2ccbd809f3 Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Wed, 9 Jun 1999 18:34:36 +0000 Subject: [PATCH] Fixed Mac PPC #ifdefs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11507 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 4 ++++ src/lib/krb5/os/c_ustime.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 7ef108f58..5bdc5dda3 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,7 @@ +1999-06-09 Miro Jurisic + + * c_ustime.c (krb5_crypto_us_timeofday): fixed Mac PPC #ifdef + 1999-06-09 Miro Jurisic * c_ustime.c (krb5_crypto_us_timeofday): #ifdefed microseconds on Mac to be diff --git a/src/lib/krb5/os/c_ustime.c b/src/lib/krb5/os/c_ustime.c index 9da60f3b8..ad036ff13 100644 --- a/src/lib/krb5/os/c_ustime.c +++ b/src/lib/krb5/os/c_ustime.c @@ -111,7 +111,7 @@ krb5_crypto_us_timeofday(seconds, microseconds) ((66 * 365 * 24 * 60 * 60) + (17 * 24 * 60 * 60) + (getTimeZoneOffset() * 60 * 60)); -#ifdef TARGET_CPU_PPC /* Only PPC has accurate time */ +#if TARGET_CPU_PPC /* Only PPC has accurate time */ if (HaveAccurateTime ()) { /* Does hardware support accurate time? */ AbsoluteTime absoluteTime; @@ -154,6 +154,7 @@ Boolean HaveAccurateTime () if (!alreadyChecked) { alreadyChecked = true; haveAccurateTime = false; +#if TARGET_CPU_PPC if ((Ptr) UpTime != (Ptr) kUnresolvedCFragSymbolAddress) { UInt32 minAbsoluteTimeDelta; UInt32 theAbsoluteTimeToNanosecondNumerator; @@ -176,6 +177,7 @@ Boolean HaveAccurateTime () haveAccurateTime = true; } } +#endif /* TARGET_CPU_PPC */ } return haveAccurateTime; -- 2.26.2