From 32ee04d17d1709050b567494cb115ec0a4a6b3e0 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 19 Jul 2004 16:25:16 +0000 Subject: [PATCH] pthread-ft-approxtime-is-time-20040719 for tvolser most code paths simply never result in time being updated. seems dangerous. --- src/lwp/fasttime.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lwp/fasttime.c b/src/lwp/fasttime.c index ee96ee72b..88783787d 100644 --- a/src/lwp/fasttime.c +++ b/src/lwp/fasttime.c @@ -118,6 +118,12 @@ FT_AGetTimeOfDay(struct timeval *tv, struct timezone *tz) return FT_GetTimeOfDay(tv, tz); } +#ifdef AFS_PTHREAD_ENV +unsigned int FT_ApproxTime(void) +{ + return time(0); +} +#else unsigned int FT_ApproxTime(void) { @@ -126,3 +132,4 @@ FT_ApproxTime(void) } return FT_LastTime.tv_sec; } +#endif -- 2.39.5