+1999-06-09 Miro Jurisic <meeroh@mit.edu>
+
+ * c_ustime.c (krb5_crypto_us_timeofday): #ifdefed microseconds on Mac to be
+ PPC-only
+
1999-06-09 Miro Jurisic <meeroh@mit.edu>
* c_ustime.c (AbsoluteToSecsNanosecs): Fixed the UInt64 division
* Macintosh ooperating system interface for Kerberos.
*/
+#include <ConditionalMacros.h>
#include <script.h> /* Defines MachineLocation, used by getTimeZoneOffset */
#include <ToolUtils.h> /* Defines BitTst(), called by getTimeZoneOffset() */
#include <OSUtils.h> /* Defines GetDateTime */
sec = the_time -
((66 * 365 * 24 * 60 * 60) + (17 * 24 * 60 * 60) +
(getTimeZoneOffset() * 60 * 60));
-
+
+#ifdef TARGET_CPU_PPC /* Only PPC has accurate time */
if (HaveAccurateTime ()) { /* Does hardware support accurate time? */
AbsoluteTime absoluteTime;
usec = nanoseconds / 1000;
- } else {
+ } else
+#endif /* TARGET_CPU_PPC */
+ {
usec = 0;
if (sec == last_sec) { /* Same as last time? */