aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/mutex8.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/tests/mutex8.c')
-rw-r--r--pthreads/tests/mutex8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pthreads/tests/mutex8.c b/pthreads/tests/mutex8.c
index 5ca99822e..f2636786c 100644
--- a/pthreads/tests/mutex8.c
+++ b/pthreads/tests/mutex8.c
@@ -44,12 +44,12 @@ static pthread_mutex_t mutex;
void * locker(void * arg)
{
struct timespec abstime = { 0, 0 };
- struct _timeb currSysTime;
+ PTW32_STRUCT_TIMEB currSysTime;
const DWORD NANOSEC_PER_MILLISEC = 1000000;
- _ftime(&currSysTime);
+ PTW32_FTIME(&currSysTime);
- abstime.tv_sec = currSysTime.time;
+ abstime.tv_sec = (long)currSysTime.time;
abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
abstime.tv_sec += 1;