Fixed Mac PPC #ifdefs
authorMiro Jurisic <meeroh@mit.edu>
Wed, 9 Jun 1999 18:34:36 +0000 (18:34 +0000)
committerMiro Jurisic <meeroh@mit.edu>
Wed, 9 Jun 1999 18:34:36 +0000 (18:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11507 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/c_ustime.c

index 7ef108f5865639aa71a9197a835f18d03da27647..5bdc5dda34f7705761bf84484772414382c67ff7 100644 (file)
@@ -1,3 +1,7 @@
+1999-06-09  Miro Jurisic  <meeroh@mit.edu>
+
+       * c_ustime.c (krb5_crypto_us_timeofday): fixed Mac PPC #ifdef
+
 1999-06-09  Miro Jurisic  <meeroh@mit.edu>
 
        * c_ustime.c (krb5_crypto_us_timeofday): #ifdefed microseconds on Mac to be
index 9da60f3b81bb995496c6b313349f3c777ae19187..ad036ff13a4e913718ffae69e8931bc15bfda63c 100644 (file)
@@ -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;